From 20a2f628283a0af476020cc394e4dca1dcdeaadd Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 9 Sep 2016 10:27:32 -0400 Subject: Add Deprecation warning for _get_unpatched. --- setuptools/dist.py | 5 +++++ setuptools/monkey.py | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3