Commit 83f82bb2 authored by Jason R. Coombs's avatar Jason R. Coombs

Rename variable for clarity

parent ca23023d
...@@ -2256,10 +2256,10 @@ class EntryPoint(object): ...@@ -2256,10 +2256,10 @@ class EntryPoint(object):
def load(self, require=True, env=None, installer=None): def load(self, require=True, env=None, installer=None):
if require: if require:
self.require(env, installer) self.require(env, installer)
entry = __import__(self.module_name, globals(), globals(), module = __import__(self.module_name, globals(), globals(),
['__name__']) ['__name__'])
try: try:
return functools.reduce(getattr, self.attrs, entry) return functools.reduce(getattr, self.attrs, module)
except AttributeError as exc: except AttributeError as exc:
raise ImportError(str(exc)) raise ImportError(str(exc))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment