diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-31 12:38:57 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-31 12:38:57 -0500 |
commit | f7df5613b53aafe3204da22945b772ce1ffa937c (patch) | |
tree | ed4b9c9c37d1f5025e2c5f00b33b1b332b69464b | |
parent | 80a28fa8c044ccb74e4ae54544be8c449ebd03e8 (diff) | |
download | external_python_setuptools-f7df5613b53aafe3204da22945b772ce1ffa937c.tar.gz external_python_setuptools-f7df5613b53aafe3204da22945b772ce1ffa937c.tar.bz2 external_python_setuptools-f7df5613b53aafe3204da22945b772ce1ffa937c.zip |
Officially deprecated EntryPoint.load(require=False).
-rw-r--r-- | CHANGES.txt | 6 | ||||
-rw-r--r-- | pkg_resources/__init__.py | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index a09ad310..efbb43f8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,6 +3,12 @@ CHANGES ======= ---- +next +---- + +* Deprecated use of EntryPoint.load(require=False). + +---- 10.1 ---- diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index f689b029..a0b354ff 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -2256,6 +2256,12 @@ class EntryPoint(object): def load(self, require=True, env=None, installer=None): if require: self.require(env, installer) + else: + warnings.warn( + "`require` parameter is deprecated. Use " + "EntryPoint._load instead.", + DeprecationWarning, + ) return self._load() def _load(self): |