]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101422: (docs) TarFile default errorlevel argument is 1, not 0 (GH-101424)
authorOwain Davies <116417456+OTheDev@users.noreply.github.com>
Mon, 30 Jan 2023 17:56:33 +0000 (00:56 +0700)
committerGitHub <noreply@github.com>
Mon, 30 Jan 2023 17:56:33 +0000 (09:56 -0800)
Doc/library/tarfile.rst

index 6e8baba04fb92df3143cf23ea7373261abc804db..741d40da152101fd9fd509e4a349a6d2ae02fdb3 100644 (file)
@@ -279,7 +279,7 @@ be finalized; only the internally used file object will be closed. See the
 .. versionadded:: 3.2
    Added support for the context management protocol.
 
-.. 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)
+.. 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)
 
    All following arguments are optional and can be accessed as instance attributes
    as well.