Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df24153 commit f2a8d63Copy full SHA for f2a8d63
2 files changed
Lib/gzip.py
@@ -331,7 +331,10 @@ def __del__(self):
331
return
332
self.close()
333
334
- def flush(self):
+ def flush(self,zlib_mode=zlib.Z_SYNC_FLUSH):
335
+ if self.mode == WRITE:
336
+ # Ensure the compressor's buffer is flushed
337
+ self.fileobj.write(self.compress.flush(zlib_mode))
338
self.fileobj.flush()
339
340
def fileno(self):
Misc/NEWS
@@ -59,6 +59,8 @@ Extension Modules
59
Library
60
-------
61
62
+- Patch #1110248: SYNC_FLUSH the zlib buffer for GZipFile.flush.
63
+
64
- Patch #1107973: Allow to iterate over the lines of a tarfile.ExFileObject.
65
66
- Patch #1104111: Alter setup.py --help and --help-commands.
0 commit comments