Commit 443cabec authored by Jason R. Coombs's avatar Jason R. Coombs

Remove private prefix from monkey as monkey module explicitly declares that...

Remove private prefix from monkey as monkey module explicitly declares that all functions are private.
parent 57a5c05e
......@@ -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):
......
......@@ -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():
......
......@@ -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()
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment