summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-01-30 10:11:54 -0800
committerGitHub <noreply@github.com>2023-01-30 10:11:54 -0800
commitdb924a46d754bac6b8debffc3d9f3e9b67cbb884 (patch)
tree64dc0e8fe45cfeeeb8da87ae599db343009c28aa
parentbe3b5f7c78d1443a24af50aa6d6c6b90fb09bd70 (diff)
downloadcpython-git-db924a46d754bac6b8debffc3d9f3e9b67cbb884.tar.gz
gh-101422: (docs) TarFile default errorlevel argument is 1, not 0 (GH-101424)
(cherry picked from commit ea232716d3de1675478db3a302629ba43194c967) Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
-rw-r--r--Doc/library/tarfile.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst
index ef81d9fa37..811f74f0e4 100644
--- a/Doc/library/tarfile.rst
+++ b/Doc/library/tarfile.rst
@@ -270,7 +270,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.