We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f87a7d commit 1aeb720Copy full SHA for 1aeb720
Doc/library/tarfile.rst
@@ -290,9 +290,10 @@ be finalized; only the internally used file object will be closed. See the
290
291
*fileobj* is not closed, when :class:`TarFile` is closed.
292
293
- *format* controls the archive format. It must be one of the constants
+ *format* controls the archive format for writing. It must be one of the constants
294
:const:`USTAR_FORMAT`, :const:`GNU_FORMAT` or :const:`PAX_FORMAT` that are
295
- defined at module level.
+ defined at module level. When reading, format will be automatically detected, even
296
+ if different formats are present in a single archive.
297
298
The *tarinfo* argument can be used to replace the default :class:`TarInfo` class
299
with a different one.
0 commit comments