]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-26253: Add compressionlevel to tarfile stream (GH-2962)
authorYaron de Leeuw <me@jarondl.net>
Sat, 25 Jun 2022 08:43:54 +0000 (11:43 +0300)
committerGitHub <noreply@github.com>
Sat, 25 Jun 2022 08:43:54 +0000 (11:43 +0300)
commit50cd4b6959568999f5e426e58050ea912a490ac6
treee4c74457bdec8383f9a7b9a7aa7509e76d4b064d
parent81e91c95a51daaa77efa3a3758ecba0475cfef38
bpo-26253: Add compressionlevel to tarfile stream (GH-2962)

`tarfile` already accepts a compressionlevel argument for creating
files. This patch adds the same for stream-based tarfile usage.
The default is 9, the value that was previously hard-coded.
Doc/library/tarfile.rst
Lib/tarfile.py
Lib/test/test_tarfile.py
Misc/NEWS.d/next/Library/2017-07-31-13-35-28.bpo-26253.8v_sCs.rst [new file with mode: 0644]