diff options
Diffstat (limited to 'Lib')
-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 |