diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2008-05-27 12:39:23 (GMT) |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2008-05-27 12:39:23 (GMT) |
commit | b1a54a353021f3d478e1d9e667cef0fa92507c36 (patch) | |
tree | 968765c627007ccae0350e85264f16c0dcecdda6 /Lib/tarfile.py | |
parent | 0902cac4b355e98184b0e435f9bb7e24ed68f6a2 (diff) | |
download | cpython-b1a54a353021f3d478e1d9e667cef0fa92507c36.zip cpython-b1a54a353021f3d478e1d9e667cef0fa92507c36.tar.gz cpython-b1a54a353021f3d478e1d9e667cef0fa92507c36.tar.bz2 |
Do not close external file objects passed to tarfile.open(mode='w:bz2')
when the TarFile is closed.
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r-- | Lib/tarfile.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 4991ae1..6199213 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -692,7 +692,6 @@ class _BZ2Proxy(object): if self.mode == "w": raw = self.bz2obj.flush() self.fileobj.write(raw) - self.fileobj.close() # class _BZ2Proxy #------------------------ |