mirror of
https://github.com/python/cpython.git
synced 2025-09-19 15:10:58 +00:00
Whitespace normalization.
This commit is contained in:
parent
a86f0c17a1
commit
b64bec3ec0
8 changed files with 18 additions and 21 deletions
|
@ -19,6 +19,3 @@ try:
|
||||||
marshal.loads(u"\222")
|
marshal.loads(u"\222")
|
||||||
except UnicodeError:
|
except UnicodeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -417,7 +417,7 @@ class ZipFile:
|
||||||
zinfo.CRC = CRC
|
zinfo.CRC = CRC
|
||||||
zinfo.file_size = file_size
|
zinfo.file_size = file_size
|
||||||
# Seek backwards and write CRC and file sizes
|
# Seek backwards and write CRC and file sizes
|
||||||
position = self.fp.tell() # Preserve current position in file
|
position = self.fp.tell() # Preserve current position in file
|
||||||
self.fp.seek(zinfo.header_offset + 14, 0)
|
self.fp.seek(zinfo.header_offset + 14, 0)
|
||||||
self.fp.write(struct.pack("<lll", zinfo.CRC, zinfo.compress_size,
|
self.fp.write(struct.pack("<lll", zinfo.CRC, zinfo.compress_size,
|
||||||
zinfo.file_size))
|
zinfo.file_size))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue