diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2008-05-27 12:39:23 +0000 |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2008-05-27 12:39:23 +0000 |
commit | 46991f94b0f3d8f815c02957376765b7f3647a5b (patch) | |
tree | 022bbc846a2a67fb0111796f1bb839f887e48589 /Lib/tarfile.py | |
parent | 0bfa622ec7dc4681b17900259adf4f36595459e4 (diff) | |
download | cpython-46991f94b0f3d8f815c02957376765b7f3647a5b.tar.gz |
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 4991ae1b60..619921328a 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 #------------------------ |