summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorYaron de Leeuw <me@jarondl.net>2022-06-25 08:43:54 (GMT)
committerGitHub <noreply@github.com>2022-06-25 08:43:54 (GMT)
commit50cd4b6959568999f5e426e58050ea912a490ac6 (patch)
treee4c74457bdec8383f9a7b9a7aa7509e76d4b064d /Misc
parent81e91c95a51daaa77efa3a3758ecba0475cfef38 (diff)
downloadcpython-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.rst2
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`.