Skip to content

Commit eac3402

Browse files
committed
Add zstd common compression levels and reference to docstring
1 parent 43b50d2 commit eac3402

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/zipfile/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,9 @@ class ZipFile:
13621362
When using ZIP_STORED or ZIP_LZMA this keyword has no effect.
13631363
When using ZIP_DEFLATED integers 0 through 9 are accepted.
13641364
When using ZIP_BZIP2 integers 1 through 9 are accepted.
1365-
When using ZIP_ZSTANDARD integers are accepted.
1365+
When using ZIP_ZSTANDARD integers -7 though 22 are common,
1366+
see the CompressionParameter enum in compression.zstd for
1367+
details.
13661368
13671369
"""
13681370

0 commit comments

Comments
 (0)