Skip to content

Commit 61c4f6e

Browse files
committed
Simplify decompress function
1 parent d7bd714 commit 61c4f6e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/zlib_ng/gzip_ng.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ def decompress(data):
200200
"""Decompress a gzip compressed string in one shot.
201201
Return the decompressed string.
202202
"""
203-
fp = io.BytesIO(data)
204-
reader = _GzipReader(fp, max(len(data), 16))
203+
reader = _GzipReader(data)
205204
return reader.readall()
206205

207206

0 commit comments

Comments
 (0)