diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-18 13:53:39 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-18 13:53:39 (GMT) |
commit | 7d68a1c921bb53c5b72fc7a884fc048185001f2c (patch) | |
tree | 0036c9f2bc8faec21d54f68873012704452c705f /Lib/tarfile.py | |
parent | ce644a09ac731830aa3a82e9a36e41bc022383c2 (diff) | |
parent | 9fbec7ad5e8fcdd9dcc5abd496341b86d12a4472 (diff) | |
download | cpython-7d68a1c921bb53c5b72fc7a884fc048185001f2c.zip cpython-7d68a1c921bb53c5b72fc7a884fc048185001f2c.tar.gz cpython-7d68a1c921bb53c5b72fc7a884fc048185001f2c.tar.bz2 |
Issue #20238: TarFile opened with external fileobj and "w:gz" mode didn't
write complete output on close.
Diffstat (limited to 'Lib/tarfile.py')
-rwxr-xr-x | Lib/tarfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 40d438c..ec8af06 100755 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -1618,7 +1618,7 @@ class TarFile(object): if not extfileobj and fileobj is not None: fileobj.close() raise - t._extfileobj = extfileobj + t._extfileobj = False return t @classmethod |