diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-31 12:00:14 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-12-31 12:00:14 -0500 |
| commit | 83f82bb2eb0b21cfa9a3f299aa8560d600b5c5b9 (patch) | |
| tree | 9f050306b6aa665a170aa3c11b23422e4ec3ed06 | |
| parent | ca23023d779848dc68160d5ab1fa8d5eeca35b78 (diff) | |
| download | python-setuptools-git-83f82bb2eb0b21cfa9a3f299aa8560d600b5c5b9.tar.gz | |
Rename variable for clarity
| -rw-r--r-- | pkg_resources/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index f8f84a5f..360f3e55 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -2256,10 +2256,10 @@ class EntryPoint(object): def load(self, require=True, env=None, installer=None): if require: self.require(env, installer) - entry = __import__(self.module_name, globals(), globals(), + module = __import__(self.module_name, globals(), globals(), ['__name__']) try: - return functools.reduce(getattr, self.attrs, entry) + return functools.reduce(getattr, self.attrs, module) except AttributeError as exc: raise ImportError(str(exc)) |
