summaryrefslogtreecommitdiff
path: root/pkg_resources
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-12-31 11:59:36 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-12-31 11:59:36 -0500
commitca23023d779848dc68160d5ab1fa8d5eeca35b78 (patch)
tree37b5c78f2e9444feccaf5b730ef422e5e470ff35 /pkg_resources
parentd1ed7aca039caf079a97d3f47347439db6fd469d (diff)
downloadpython-setuptools-git-ca23023d779848dc68160d5ab1fa8d5eeca35b78.tar.gz
Return value directly
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: