Commit 3afd956e authored by Benjamin Peterson's avatar Benjamin Peterson

document the compress_level argument to tarfile.open (closes #21404)

Patch by Katherine Busch.
parent 93e51aac
......@@ -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
......
......@@ -194,6 +194,7 @@ Roger Burnham
Alastair Burt
Tarn Weisner Burton
Lee Busby
Katherine Busch
Ralph Butler
Nicolas Cadou
Jp Calderone
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment