summaryrefslogtreecommitdiffstats
path: root/Lib/pkgutil.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-09-17 01:35:57 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-09-17 01:35:57 (GMT)
commit0cfb81d13f16dfa71b2f5bf215c36dfef319f4fe (patch)
treeb2d9f2c32606b0d60b0a09004afccb6d8436c687 /Lib/pkgutil.py
parent7724a6c10c56a1b14b4933de368e672eae840f47 (diff)
downloadcpython-0cfb81d13f16dfa71b2f5bf215c36dfef319f4fe.zip
cpython-0cfb81d13f16dfa71b2f5bf215c36dfef319f4fe.tar.gz
cpython-0cfb81d13f16dfa71b2f5bf215c36dfef319f4fe.tar.bz2
Use a local name (it was intended to be used but overlooked).
This was caught in the distutils2 repo by pyflakes.
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r--Lib/pkgutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py
index 2dd20cd..c561c13 100644
--- a/Lib/pkgutil.py
+++ b/Lib/pkgutil.py
@@ -307,9 +307,9 @@ class ImpLoader:
def get_filename(self, fullname=None):
fullname = self._fix_name(fullname)
mod_type = self.etc[2]
- if self.etc[2]==imp.PKG_DIRECTORY:
+ if mod_type==imp.PKG_DIRECTORY:
return self._get_delegate().get_filename()
- elif self.etc[2] in (imp.PY_SOURCE, imp.PY_COMPILED, imp.C_EXTENSION):
+ elif mod_type in (imp.PY_SOURCE, imp.PY_COMPILED, imp.C_EXTENSION):
return self.filename
return None