diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-21 17:59:46 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-21 17:59:46 (GMT) |
commit | 8a519392d5be32adf77ceab86f7f637a7e0835f5 (patch) | |
tree | 4094f3642bd047ff0ab38dd86b4bacf474f201ca /Lib/tarfile.py | |
parent | 271d59343b1de64d5e070eb170fabc0419d75bf8 (diff) | |
download | cpython-8a519392d5be32adf77ceab86f7f637a7e0835f5.zip cpython-8a519392d5be32adf77ceab86f7f637a7e0835f5.tar.gz cpython-8a519392d5be32adf77ceab86f7f637a7e0835f5.tar.bz2 |
Fix bug #1543303, tarfile adds padding that breaks gunzip.
Patch # 1543897.
Will backport to 2.5
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r-- | Lib/tarfile.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index c185fbd..38cccae 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -411,9 +411,6 @@ class _Stream: self.buf += self.cmp.flush() if self.mode == "w" and self.buf: - blocks, remainder = divmod(len(self.buf), self.bufsize) - if remainder > 0: - self.buf += NUL * (self.bufsize - remainder) self.fileobj.write(self.buf) self.buf = "" if self.comptype == "gz": |