From: Benjamin Peterson Date: Sat, 7 Jun 2014 19:45:37 +0000 (-0700) Subject: document the compress_level argument to tarfile.open (closes #21404) X-Git-Tag: v2.7.8~37^2~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3afd956e09b22558543994b80082e8f51151de5d;p=python document the compress_level argument to tarfile.open (closes #21404) Patch by Katherine Busch. --- diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index 1c6b67c27b..bd218e1bd3 100644 --- a/Doc/library/tarfile.rst +++ b/Doc/library/tarfile.rst @@ -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 diff --git a/Misc/ACKS b/Misc/ACKS index afe212c071..f6449ba873 100644 --- 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