Skip to content

Commit db924a4

Browse files
gh-101422: (docs) TarFile default errorlevel argument is 1, not 0 (GH-101424)
(cherry picked from commit ea23271) Co-authored-by: Owain Davies <[email protected]>
1 parent be3b5f7 commit db924a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/tarfile.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ be finalized; only the internally used file object will be closed. See the
270270
.. versionadded:: 3.2
271271
Added support for the context management protocol.
272272

273-
.. class:: TarFile(name=None, mode='r', fileobj=None, format=DEFAULT_FORMAT, tarinfo=TarInfo, dereference=False, ignore_zeros=False, encoding=ENCODING, errors='surrogateescape', pax_headers=None, debug=0, errorlevel=0)
273+
.. class:: TarFile(name=None, mode='r', fileobj=None, format=DEFAULT_FORMAT, tarinfo=TarInfo, dereference=False, ignore_zeros=False, encoding=ENCODING, errors='surrogateescape', pax_headers=None, debug=0, errorlevel=1)
274274

275275
All following arguments are optional and can be accessed as instance attributes
276276
as well.

0 commit comments

Comments
 (0)