diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-09 10:27:32 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-09 10:27:32 -0400 |
commit | 20a2f628283a0af476020cc394e4dca1dcdeaadd (patch) | |
tree | 0010be67ef8c942262e8e397b182f26bdde9ddea | |
parent | c5645385252c45575569a01622405115d49cd1b9 (diff) | |
download | external_python_setuptools-20a2f628283a0af476020cc394e4dca1dcdeaadd.tar.gz external_python_setuptools-20a2f628283a0af476020cc394e4dca1dcdeaadd.tar.bz2 external_python_setuptools-20a2f628283a0af476020cc394e4dca1dcdeaadd.zip |
Add Deprecation warning for _get_unpatched.
-rw-r--r-- | setuptools/dist.py | 5 | ||||
-rw-r--r-- | setuptools/monkey.py | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index 2f7bb59a..b004f928 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -22,6 +22,11 @@ from setuptools.monkey import get_unpatched import pkg_resources +def _get_unpatched(cls): + warnings.warn("Do not call this function", DeprecationWarning) + return get_unpatched(cls) + + # Based on Python 3.5 version def write_pkg_file(self, file): """Write the PKG-INFO format data to a file object. diff --git a/setuptools/monkey.py b/setuptools/monkey.py index 3e4f49e1..5a0cf43b 100644 --- a/setuptools/monkey.py +++ b/setuptools/monkey.py @@ -10,7 +10,10 @@ import setuptools __all__ = [] -"everything is private" +""" +Everything is private. Contact the project team +if you think you need this functionality. +""" def get_unpatched(cls): |