Skip to content

Commit 150689c

Browse files
committed
Revise code comment and news
1 parent 71a5544 commit 150689c

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

Lib/zipfile/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,7 @@ def FileHeader(self, zip64=None):
542542
file_size = self.file_size
543543

544544
# Strip extra fields that should not exist in the local entry or should
545-
# be determined later. (self.extra can be read from central directory
546-
# when read in append mode)
545+
# be determined later.
547546
extra = _Extra.strip(self.extra, (
548547
0x0001, # Zip64
549548
0x0017, # Strong Encryption Header
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Fix an issue where duplicated Zip64 extra fields or other invalid
2-
fields were written if :attr:`ZipInfo.extra <zipfile.ZipInfo.extra>`
3-
already contained them (which could be read from central directory in
4-
append mode).
1+
Fix an issue where duplicated Zip64 extra fields or other improper
2+
fields were written to the local file entry if
3+
:attr:`ZipInfo.extra <zipfile.ZipInfo.extra>` contained them.
4+

0 commit comments

Comments
 (0)