summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-05 12:58:07 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-05 12:58:07 -0500
commit3ba436a301a5e020de8c33fbeca016c205511f4a (patch)
treeedd43fa563425c5521b7a1fe6b58ff44b48db779
parentf7df5613b53aafe3204da22945b772ce1ffa937c (diff)
downloadpython-setuptools-git-3ba436a301a5e020de8c33fbeca016c205511f4a.tar.gz
Bump stacklevel to 2 to inform the caller of the issue.
-rw-r--r--pkg_resources/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index a0b354ff..0e6223de 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -2261,6 +2261,7 @@ class EntryPoint(object):
"`require` parameter is deprecated. Use "
"EntryPoint._load instead.",
DeprecationWarning,
+ stacklevel=2,
)
return self._load()