]> 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 1c6b67c27b68cf8fe1564cb6fd09d757802aaec9..bd218e1bd3ddb7e735de4dea981ba61a20782c1b 100644 (file)
@@ -77,6 +77,10 @@ Some facts and figures:
    If *fileobj* is specified, it is used as an alternative to a file object opened
    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 afe212c071bec3db3e08cfeec92201f384ac694c..f6449ba8734c7cb8a7bdc390b925cfee0b342f12 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -194,6 +194,7 @@ Roger Burnham
 Alastair Burt
 Tarn Weisner Burton
 Lee Busby
+Katherine Busch
 Ralph Butler
 Nicolas Cadou
 Jp Calderone