summaryrefslogtreecommitdiff
path: root/pkg_resources/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pkg_resources/__init__.py')
-rw-r--r--pkg_resources/__init__.py6
1 files changed, 6 insertions, 0 deletions
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):