diff options
author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-04-20 10:00:46 +0100 |
---|---|---|
committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-04-20 10:00:46 +0100 |
commit | aac3c669ba0ca13c8f581f99174b2a3024412f40 (patch) | |
tree | 24ded44118492d1dae8967f4c9ac1aaf24f42c5d | |
parent | 870268f0c57d483c0066fff661db01c33f6c3614 (diff) | |
download | python-setuptools-git-aac3c669ba0ca13c8f581f99174b2a3024412f40.tar.gz |
Improve wrapper compatibility with onexc for py312compat.shutil_rmtree
-rw-r--r-- | setuptools/py312compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/py312compat.py b/setuptools/py312compat.py index dd5af58e..28175b1f 100644 --- a/setuptools/py312compat.py +++ b/setuptools/py312compat.py @@ -7,6 +7,6 @@ def shutil_rmtree(path, ignore_errors=False, onexc=None): return shutil.rmtree(path, ignore_errors, onexc=onexc) def _handler(fn, path, excinfo): - onexc(fn, path, excinfo[1]) + return onexc(fn, path, excinfo[1]) return shutil.rmtree(path, ignore_errors, onerror=_handler) |