aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-12-31 12:06:32 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-12-31 12:06:32 -0500
commit5e22ed05a7e1f3c787de06ef73b3facd1cdd1f7c (patch)
tree4d874872188efd2e4a415b0f756b9cb12f2b0974
parent83f82bb2eb0b21cfa9a3f299aa8560d600b5c5b9 (diff)
downloadexternal_python_setuptools-5e22ed05a7e1f3c787de06ef73b3facd1cdd1f7c.tar.gz
external_python_setuptools-5e22ed05a7e1f3c787de06ef73b3facd1cdd1f7c.tar.bz2
external_python_setuptools-5e22ed05a7e1f3c787de06ef73b3facd1cdd1f7c.zip
Extract _load method which is the same as calling .load(False).
-rw-r--r--pkg_resources/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index 360f3e55..29b1f163 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -2256,6 +2256,9 @@ class EntryPoint(object):
def load(self, require=True, env=None, installer=None):
if require:
self.require(env, installer)
+ return self._load()
+
+ def _load(self):
module = __import__(self.module_name, globals(), globals(),
['__name__'])
try: