Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33919e8

Browse files
committed
merge 3.4 (#21404)
2 parents 3e43979 + 9b2731b commit 33919e8

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/tarfile.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ Some facts and figures:
8181
If *fileobj* is specified, it is used as an alternative to a :term:`file object`
8282
opened in binary mode for *name*. It is supposed to be at position 0.
8383

84+
For modes ``'w:gz'``, ``'r:gz'``, ``'w:bz2'``, ``'r:bz2'``, :func:`tarfile.open`
85+
accepts the keyword argument *compresslevel* to specify the compression level of
86+
the file.
87+
8488
For special purposes, there is a second format for *mode*:
8589
``'filemode|[compression]'``. :func:`tarfile.open` will return a :class:`TarFile`
8690
object that processes its data as a stream of blocks. No random seeking will

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ Roger Burnham
196196
Alastair Burt
197197
Tarn Weisner Burton
198198
Lee Busby
199+
Katherine Busch
199200
Ralph Butler
200201
Nicolas Cadou
201202
Jp Calderone

0 commit comments

Comments
 (0)