diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2007-08-29 19:09:54 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2007-08-29 19:09:54 (GMT) |
commit | 9ff05b269fcab2ab129db7e133292b1edf763b3d (patch) | |
tree | bb4c614c879b790a0238b7884293f8386b75095b | |
parent | 88d06a724079f0bef9660c9a9932dbf884d480e6 (diff) | |
download | cpython-9ff05b269fcab2ab129db7e133292b1edf763b3d.zip cpython-9ff05b269fcab2ab129db7e133292b1edf763b3d.tar.gz cpython-9ff05b269fcab2ab129db7e133292b1edf763b3d.tar.bz2 |
Change string literal to bytes.
-rw-r--r-- | Lib/zipfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index f19ba31..4cd90e5 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -135,7 +135,7 @@ def _EndRecData(fpin): fpin.seek(-22, 2) # Assume no archive comment. filesize = fpin.tell() + 22 # Get file size data = fpin.read() - if data[0:4] == stringEndArchive and data[-2:] == "\000\000": + if data[0:4] == stringEndArchive and data[-2:] == b"\000\000": endrec = struct.unpack(structEndArchive, data) endrec = list(endrec) endrec.append("") # Append the archive comment |