diff options
author | Yaron de Leeuw <me@jarondl.net> | 2022-06-25 08:43:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 08:43:54 (GMT) |
commit | 50cd4b6959568999f5e426e58050ea912a490ac6 (patch) | |
tree | e4c74457bdec8383f9a7b9a7aa7509e76d4b064d /Misc | |
parent | 81e91c95a51daaa77efa3a3758ecba0475cfef38 (diff) | |
download | cpython-50cd4b6959568999f5e426e58050ea912a490ac6.zip cpython-50cd4b6959568999f5e426e58050ea912a490ac6.tar.gz cpython-50cd4b6959568999f5e426e58050ea912a490ac6.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-07-31-13-35-28.bpo-26253.8v_sCs.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-07-31-13-35-28.bpo-26253.8v_sCs.rst b/Misc/NEWS.d/next/Library/2017-07-31-13-35-28.bpo-26253.8v_sCs.rst new file mode 100644 index 0000000..fa0dc95 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-07-31-13-35-28.bpo-26253.8v_sCs.rst @@ -0,0 +1,2 @@ +Allow adjustable compression level for tarfile streams in +:func:`tarfile.open`. |