summaryrefslogtreecommitdiff
path: root/setuptools/_distutils/dir_util.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-02-06 20:09:55 -0500
committerGitHub <noreply@github.com>2023-02-06 20:09:55 -0500
commitbb17d4f9b23b3b8d670271f36d8894239295efe3 (patch)
tree38943cabf4e65c9b393ea765410968d39f7c1521 /setuptools/_distutils/dir_util.py
parent8032430d75cdfad9f9826d302d90cd7b23dea3ca (diff)
parent47c7cfd67862e65eb19dca8b60094db0fe203049 (diff)
downloadpython-setuptools-git-bb17d4f9b23b3b8d670271f36d8894239295efe3.tar.gz
Merge pull request #3809 from pypa/distutils-8c3c3d29
Merge with distutils@8c3c3d29
Diffstat (limited to 'setuptools/_distutils/dir_util.py')
-rw-r--r--setuptools/_distutils/dir_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/_distutils/dir_util.py b/setuptools/_distutils/dir_util.py
index 80f77649..23dc3392 100644
--- a/setuptools/_distutils/dir_util.py
+++ b/setuptools/_distutils/dir_util.py
@@ -227,7 +227,7 @@ def remove_tree(directory, verbose=1, dry_run=0):
# remove dir from cache if it's already there
abspath = os.path.abspath(cmd[1])
if abspath in _path_created:
- del _path_created[abspath]
+ _path_created.pop(abspath)
except OSError as exc:
log.warning("error removing %s: %s", directory, exc)