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 b914ef0 commit 6e4f7a8Copy full SHA for 6e4f7a8
1 file changed
Lib/tarfile.py
@@ -353,6 +353,7 @@ def close(self):
353
if self.mode == "w" and self.buf:
354
if self.type != "tar":
355
self.buf += self.cmp.flush()
356
+ self.__write("") # Write remaining blocks to output
357
self.fileobj.write(self.buf)
358
self.buf = ""
359
if self.type == "gz":
0 commit comments