Skip to content

Commit d729c5c

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 <116417456+OTheDev@users.noreply.github.com>
1 parent ae3dea3 commit d729c5c

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
@@ -265,7 +265,7 @@ be finalized; only the internally used file object will be closed. See the
265265
.. versionadded:: 3.2
266266
Added support for the context management protocol.
267267

268-
.. 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)
268+
.. 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)
269269

270270
All following arguments are optional and can be accessed as instance attributes
271271
as well.

0 commit comments

Comments
 (0)