mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Change string literal to bytes.
This commit is contained in:
parent
88d06a7240
commit
9ff05b269f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue