diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-04 19:30:10 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-04 19:30:10 -0400 |
commit | 443cabec148460b3a688923df1a63f689d1164c7 (patch) | |
tree | c0935d6336b46b63c48bb3ea9ae36b88844678e3 | |
parent | 57a5c05e6f460260f1339dce37407c724ad4c5e8 (diff) | |
download | external_python_setuptools-443cabec148460b3a688923df1a63f689d1164c7.tar.gz external_python_setuptools-443cabec148460b3a688923df1a63f689d1164c7.tar.bz2 external_python_setuptools-443cabec148460b3a688923df1a63f689d1164c7.zip |
Remove private prefix from monkey as monkey module explicitly declares that all functions are private.
-rw-r--r-- | setuptools/__init__.py | 2 | ||||
-rw-r--r-- | setuptools/dist.py | 4 | ||||
-rw-r--r-- | setuptools/extension.py | 4 | ||||
-rw-r--r-- | setuptools/monkey.py | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/setuptools/__init__.py b/setuptools/__init__.py index 0129658a..41b590d7 100644 --- a/setuptools/__init__.py +++ b/setuptools/__init__.py @@ -121,7 +121,7 @@ find_packages = PackageFinder.find setup = distutils.core.setup -_Command = monkey._get_unpatched(distutils.core.Command) +_Command = monkey.get_unpatched(distutils.core.Command) class Command(_Command): diff --git a/setuptools/dist.py b/setuptools/dist.py index 380b9436..7a4249f1 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -19,11 +19,11 @@ from pkg_resources.extern import packaging from setuptools.depends import Require from setuptools import windows_support -from setuptools.monkey import _get_unpatched +from setuptools.monkey import get_unpatched import pkg_resources -_Distribution = _get_unpatched(distutils.core.Distribution) +_Distribution = get_unpatched(distutils.core.Distribution) def _patch_distribution_metadata_write_pkg_file(): diff --git a/setuptools/extension.py b/setuptools/extension.py index 7ef3fad2..073d9459 100644 --- a/setuptools/extension.py +++ b/setuptools/extension.py @@ -7,10 +7,10 @@ import distutils.extension from setuptools.extern.six.moves import map -from .monkey import _get_unpatched +from .monkey import get_unpatched from . import msvc -_Extension = _get_unpatched(distutils.core.Extension) +_Extension = get_unpatched(distutils.core.Extension) msvc.patch_for_specialized_compiler() diff --git a/setuptools/monkey.py b/setuptools/monkey.py index 189fa4e0..1961dfba 100644 --- a/setuptools/monkey.py +++ b/setuptools/monkey.py @@ -12,7 +12,7 @@ __all__ = [] "everything is private" -def _get_unpatched(cls): +def get_unpatched(cls): """Protect against re-patching the distutils if reloaded Also ensures that no other distutils extension monkeypatched the distutils |