diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-01-18 08:13:23 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2020-02-16 09:33:32 -0800 |
commit | b3de7989665740cd4218d7d814e719d90e75de73 (patch) | |
tree | d805a67fc0f5ff68e26c806191f8d74b88709af3 /setuptools/command | |
parent | 43edec2506f901ab939390951383025682448edd (diff) | |
download | external_python_setuptools-b3de7989665740cd4218d7d814e719d90e75de73.tar.gz external_python_setuptools-b3de7989665740cd4218d7d814e719d90e75de73.tar.bz2 external_python_setuptools-b3de7989665740cd4218d7d814e719d90e75de73.zip |
Remove pkg_resources.py31compat.makedirs() in favor of the stdlib
As setuptools is now python 3.5+, this compatibility shim is no longer
necessary.
Diffstat (limited to 'setuptools/command')
-rw-r--r-- | setuptools/command/easy_install.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index abca1ae1..d224ea05 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -64,7 +64,7 @@ from pkg_resources import ( Distribution, PathMetadata, EggMetadata, WorkingSet, DistributionNotFound, VersionConflict, DEVELOP_DIST, ) -import pkg_resources.py31compat +import pkg_resources __metaclass__ = type @@ -559,7 +559,7 @@ class easy_install(Command): if ok_exists: os.unlink(ok_file) dirname = os.path.dirname(ok_file) - pkg_resources.py31compat.makedirs(dirname, exist_ok=True) + os.makedirs(dirname, exist_ok=True) f = open(pth_file, 'w') except (OSError, IOError): self.cant_write_to_target() |