diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-12-14 18:23:30 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-12-14 18:23:30 (GMT) |
commit | c8428d3dce850a54eb49298ceabf95fc3c00867d (patch) | |
tree | d8806d53b2d52b58aaf5f083197e2141d4a8b62f /Lib/tarfile.py | |
parent | 999df780d1dffdfe1e1e14122e38df098ef6f1a5 (diff) | |
download | cpython-c8428d3dce850a54eb49298ceabf95fc3c00867d.zip cpython-c8428d3dce850a54eb49298ceabf95fc3c00867d.tar.gz cpython-c8428d3dce850a54eb49298ceabf95fc3c00867d.tar.bz2 |
Merged revisions 76836 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r76836 | antoine.pitrou | 2009-12-14 19:00:06 +0100 (lun., 14 déc. 2009) | 5 lines
Issue #4757: `zlib.compress` and other methods in the zlib module now
raise a TypeError when given an `str` object (rather than a `bytes`-like
object). Patch by Victor Stinner and Florent Xicluna.
........
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r-- | Lib/tarfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 8eb80f8..ef316b5 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -400,7 +400,7 @@ class _Stream: except ImportError: raise CompressionError("zlib module is not available") self.zlib = zlib - self.crc = zlib.crc32("") + self.crc = zlib.crc32(b"") if mode == "r": self._init_read_gz() else: |