summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2007-08-29 19:09:54 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2007-08-29 19:09:54 (GMT)
commit9ff05b269fcab2ab129db7e133292b1edf763b3d (patch)
treebb4c614c879b790a0238b7884293f8386b75095b /Lib/zipfile.py
parent88d06a724079f0bef9660c9a9932dbf884d480e6 (diff)
downloadcpython-9ff05b269fcab2ab129db7e133292b1edf763b3d.zip
cpython-9ff05b269fcab2ab129db7e133292b1edf763b3d.tar.gz
cpython-9ff05b269fcab2ab129db7e133292b1edf763b3d.tar.bz2
Change string literal to bytes.
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r--Lib/zipfile.py2
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