@@ -994,14 +994,14 @@ def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0,
994
994
"""Create a (possibly compressed) tar file from all the files under
995
995
'base_dir'.
996
996
997
- 'compress' must be "gzip" (the default), "bzip2", "xz", or None.
997
+ 'compress' must be "gzip" (the default), "bzip2", "xz", "zst", or None.
998
998
999
999
'owner' and 'group' can be used to define an owner and a group for the
1000
1000
archive that is being built. If not provided, the current owner and group
1001
1001
will be used.
1002
1002
1003
1003
The output tar file will be named 'base_name' + ".tar", possibly plus
1004
- the appropriate compression extension (".gz", ".bz2", or ".xz ").
1004
+ the appropriate compression extension (".gz", ".bz2", ".xz", or ".zst ").
1005
1005
1006
1006
Returns the output filename.
1007
1007
"""
@@ -1187,7 +1187,7 @@ def make_archive(base_name, format, root_dir=None, base_dir=None, verbose=0,
1187
1187
1188
1188
'base_name' is the name of the file to create, minus any format-specific
1189
1189
extension; 'format' is the archive format: one of "zip", "tar", "gztar",
1190
- "bztar", "zstdtar ", or "xztar ". Or any other registered format.
1190
+ "bztar", "xztar ", or "zstdtar ". Or any other registered format.
1191
1191
1192
1192
'root_dir' is a directory that will be the root directory of the
1193
1193
archive; ie. we typically chdir into 'root_dir' before creating the
@@ -1337,7 +1337,7 @@ def _unpack_zipfile(filename, extract_dir):
1337
1337
zip .close ()
1338
1338
1339
1339
def _unpack_tarfile (filename , extract_dir , * , filter = None ):
1340
- """Unpack tar/tar.gz/tar.bz2/tar.xz `filename` to `extract_dir`
1340
+ """Unpack tar/tar.gz/tar.bz2/tar.xz/tar.zst `filename` to `extract_dir`
1341
1341
"""
1342
1342
import tarfile # late import for breaking circular dependency
1343
1343
try :
@@ -1392,7 +1392,7 @@ def unpack_archive(filename, extract_dir=None, format=None, *, filter=None):
1392
1392
is unpacked. If not provided, the current working directory is used.
1393
1393
1394
1394
`format` is the archive format: one of "zip", "tar", "gztar", "bztar",
1395
- or "xztar ". Or any other registered format. If not provided,
1395
+ "xztar", or "zstdtar ". Or any other registered format. If not provided,
1396
1396
unpack_archive will use the filename extension and see if an unpacker
1397
1397
was registered for that extension.
1398
1398
0 commit comments