]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change string literal to bytes.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 29 Aug 2007 19:09:54 +0000 (19:09 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 29 Aug 2007 19:09:54 +0000 (19:09 +0000)
Lib/zipfile.py

index f19ba31d257ec19f72aada1292a670a9359f978f..4cd90e5ccef1463753d8ff65fdcb40713e4e4c54 100644 (file)
@@ -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