aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources
diff options
context:
space:
mode:
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index f3f7bcc9..f8f84a5f 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -2259,10 +2259,9 @@ class EntryPoint(object):
entry = __import__(self.module_name, globals(), globals(),
['__name__'])
try:
- entry = functools.reduce(getattr, self.attrs, entry)
+ return functools.reduce(getattr, self.attrs, entry)
except AttributeError as exc:
raise ImportError(str(exc))
- return entry
def require(self, env=None, installer=None):
if self.extras and not self.dist: