Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gzipstream/gzipstreamfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def read(self, size):
# TODO: Update this to use unconsumed_tail and a StringIO buffer
# http://docs.python.org/2/library/zlib.html#zlib.Decompress.unconsumed_tail
# Check if we need to start a new decoder
if self.decoder and self.decoder.unused_data:
while self.decoder and self.decoder.unused_data:
self.restart_decoder()
# Use unused data first
if len(self.unused_buffer) > size:
Expand Down