diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-11-13 14:37:35 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-11-13 14:37:35 -0500 |
| commit | 9b8a6ef60b2b490bcf60b9dd7f0d43d46f49e489 (patch) | |
| tree | 56b90c20f19ca92c8d9c26e782c5969a7b872c48 /setuptools/_distutils/dir_util.py | |
| parent | a0e8e53cecc238e3bce2247308fe7dd94114ef35 (diff) | |
| parent | e0787fad7c03d8defbbaaaf2888130cc2a171537 (diff) | |
| download | python-setuptools-git-9b8a6ef60b2b490bcf60b9dd7f0d43d46f49e489.tar.gz | |
Merge https://github.com/pypa/distutils into distutils-e0787fa
Diffstat (limited to 'setuptools/_distutils/dir_util.py')
| -rw-r--r-- | setuptools/_distutils/dir_util.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/_distutils/dir_util.py b/setuptools/_distutils/dir_util.py index 6f0bb8ad..80f77649 100644 --- a/setuptools/_distutils/dir_util.py +++ b/setuptools/_distutils/dir_util.py @@ -4,8 +4,8 @@ Utility functions for manipulating directories and directory trees.""" import os import errno -from distutils.errors import DistutilsInternalError, DistutilsFileError -from distutils import log +from .errors import DistutilsInternalError, DistutilsFileError +from ._log import log # cache for by mkpath() -- in addition to cheapening redundant calls, # eliminates redundant "creating /foo/bar/baz" messages in dry-run mode @@ -229,7 +229,7 @@ def remove_tree(directory, verbose=1, dry_run=0): if abspath in _path_created: del _path_created[abspath] except OSError as exc: - log.warn("error removing %s: %s", directory, exc) + log.warning("error removing %s: %s", directory, exc) def ensure_relative(path): |
