Skip to content

Commit

Permalink
simplify the code comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
gpshead committed Jan 12, 2024
1 parent f2a4302 commit 8efefff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Lib/zipfile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,7 @@ def __init__(self, filename="NoName", date_time=(1980,1,1,0,0,0)):
# header_offset Byte offset to the file header
# CRC CRC-32 of the uncompressed file

# Historically ._compresslevel was private for no reason. People used it as
# a public attribute when constructing their own ZipInfo to control the
# setting on a per file basis when added to an archive. We moved it into
# .compress_level, this property retains compatibility.
# Maintain backward compatibility with the old protected attribute name.
@property
def _compresslevel(self):
return self.compress_level
Expand Down

0 comments on commit 8efefff

Please sign in to comment.