summaryrefslogtreecommitdiff
path: root/Lib/tarfile.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-01-18 15:53:05 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2014-01-18 15:53:05 +0200
commit9fbec7ad5e8fcdd9dcc5abd496341b86d12a4472 (patch)
treedeb922b10d5de919bd8387cfcfa5dea37cd76aa9 /Lib/tarfile.py
parent53ad0cd2842b7327bde4ca04ee11c544e522ff43 (diff)
downloadcpython-git-9fbec7ad5e8fcdd9dcc5abd496341b86d12a4472.tar.gz
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-xLib/tarfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index 987c011362..8a69988c08 100755
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -1642,7 +1642,7 @@ class TarFile(object):
if not extfileobj and fileobj is not None:
fileobj.close()
raise
- t._extfileobj = extfileobj
+ t._extfileobj = False
return t
@classmethod