summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-12-03 14:02:37 (GMT)
committerGitHub <noreply@github.com>2023-12-03 14:02:37 (GMT)
commit97857ac0580057c3a4f75d34209841c81ee11a96 (patch)
tree070c235c2be04568ee46d6e7e124982f19fd5458 /Lib/shutil.py
parent162d3d428a836850ba29c58bbf37c931843d9e37 (diff)
downloadcpython-97857ac0580057c3a4f75d34209841c81ee11a96.zip
cpython-97857ac0580057c3a4f75d34209841c81ee11a96.tar.gz
cpython-97857ac0580057c3a4f75d34209841c81ee11a96.tar.bz2
gh-112645: remove deprecation warning for use of onerror in shutil.rmtree (#112659)
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r--Lib/shutil.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index 0fed011..dd93872 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -721,11 +721,6 @@ def rmtree(path, ignore_errors=False, onerror=None, *, onexc=None, dir_fd=None):
If both onerror and onexc are set, onerror is ignored and onexc is used.
"""
- if onerror is not None:
- import warnings
- warnings.warn("onerror argument is deprecated, use onexc instead",
- DeprecationWarning, stacklevel=2)
-
sys.audit("shutil.rmtree", path, dir_fd)
if ignore_errors:
def onexc(*args):