Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f7c605

Browse files
committed
Issue #25496: Document compresslevel defaults to 9, by Hamza T Khan
1 parent a7a222f commit 7f7c605

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/tarfile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Some facts and figures:
101101

102102
For modes ``'w:gz'``, ``'r:gz'``, ``'w:bz2'``, ``'r:bz2'``, ``'x:gz'``,
103103
``'x:bz2'``, :func:`tarfile.open` accepts the keyword argument
104-
*compresslevel* to specify the compression level of the file.
104+
*compresslevel* (default ``9``) to specify the compression level of the file.
105105

106106
For special purposes, there is a second format for *mode*:
107107
``'filemode|[compression]'``. :func:`tarfile.open` will return a :class:`TarFile`

0 commit comments

Comments
 (0)