]> granicus.if.org Git - python/commitdiff
document the compress_level argument to tarfile.open (closes #21404)
authorBenjamin Peterson <benjamin@python.org>
Sat, 7 Jun 2014 19:45:37 +0000 (12:45 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sat, 7 Jun 2014 19:45:37 +0000 (12:45 -0700)
Patch by Katherine Busch.

Doc/library/tarfile.rst
Misc/ACKS

index 1ef270358b97d48069d9652ce80e1a65c9913e17..15b88f87b76e929c3c2965ff1add07ee57212b1c 100644 (file)
@@ -81,6 +81,10 @@ Some facts and figures:
    If *fileobj* is specified, it is used as an alternative to a :term:`file object`
    opened in binary mode for *name*. It is supposed to be at position 0.
 
+   For modes ``'w:gz'``, ``'r:gz'``, ``'w:bz2'``, ``'r:bz2'``, :func:`tarfile.open`
+   accepts the keyword argument *compresslevel* to specify the compression level of
+   the file.
+
    For special purposes, there is a second format for *mode*:
    ``'filemode|[compression]'``.  :func:`tarfile.open` will return a :class:`TarFile`
    object that processes its data as a stream of blocks.  No random seeking will
index 9cf457286cb7569bef038a174af7cef015030586..571f1a65e491d5bae50bad4e14fab61edee6fb1a 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -195,6 +195,7 @@ Roger Burnham
 Alastair Burt
 Tarn Weisner Burton
 Lee Busby
+Katherine Busch
 Ralph Butler
 Nicolas Cadou
 Jp Calderone