Skip to content

Commit 321c098

Browse files
committed
zipfile: Add missing zstd compression documentation
1 parent 114044f commit 321c098

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/zipfile/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
zstd = None
3838

3939
__all__ = ["BadZipFile", "BadZipfile", "error",
40-
"ZIP_STORED", "ZIP_DEFLATED", "ZIP_BZIP2", "ZIP_LZMA",
40+
"ZIP_STORED", "ZIP_DEFLATED", "ZIP_BZIP2", "ZIP_LZMA", "ZIP_ZSTANDARD",
4141
"is_zipfile", "ZipInfo", "ZipFile", "PyZipFile", "LargeZipFile",
4242
"Path"]
4343

@@ -1352,7 +1352,8 @@ class ZipFile:
13521352
mode: The mode can be either read 'r', write 'w', exclusive create 'x',
13531353
or append 'a'.
13541354
compression: ZIP_STORED (no compression), ZIP_DEFLATED (requires zlib),
1355-
ZIP_BZIP2 (requires bz2) or ZIP_LZMA (requires lzma).
1355+
ZIP_BZIP2 (requires bz2), ZIP_LZMA (requires lzma), or
1356+
ZIP_ZSTANDARD (requires zstd).
13561357
allowZip64: if True ZipFile will create files with ZIP64 extensions when
13571358
needed, otherwise it will raise an exception when this would
13581359
be necessary.

0 commit comments

Comments
 (0)