Skip to content
Merged
Prev Previous commit
Next Next commit
Fix error in method
  • Loading branch information
rhpvorderman committed May 12, 2026
commit 4d0f01d5cf02cf976c67931d8b57cdb75d292a1a
1 change: 1 addition & 0 deletions Lib/gzip.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ def _read_until_null(fp):
if not s:
raise EOFError("Compressed file ended before the "
"end-of-stream marker was reached")
result.write(s)
if s == b'\000':
break
return result.getvalue()
Expand Down
Loading