]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101422: (docs) TarFile default errorlevel argument is 1, not 0 (GH-101424)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 30 Jan 2023 18:21:08 +0000 (10:21 -0800)
committerGitHub <noreply@github.com>
Mon, 30 Jan 2023 18:21:08 +0000 (10:21 -0800)
(cherry picked from commit ea232716d3de1675478db3a302629ba43194c967)

Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
Doc/library/tarfile.rst

index 6afb8397b7866db2ab8aacabd51ddfea92c101e3..0dc7c6191487e4365091c9a1d5025610a57a639c 100644 (file)
@@ -276,7 +276,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.