summaryrefslogtreecommitdiffstats
path: root/Lib/pkgutil.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-11 07:26:27 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-11 07:26:27 (GMT)
commitf992a2b11e5fdcddbb6ef834a0601e1ac6307409 (patch)
tree43fa3adc4d9ca3e9f51603c1dfb9e53b9803a165 /Lib/pkgutil.py
parent7d5b6e8991fc397492f735a6e9d5e073e54ab15e (diff)
downloadcpython-f992a2b11e5fdcddbb6ef834a0601e1ac6307409.zip
cpython-f992a2b11e5fdcddbb6ef834a0601e1ac6307409.tar.gz
cpython-f992a2b11e5fdcddbb6ef834a0601e1ac6307409.tar.bz2
Fix errors found by pychecker
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r--Lib/pkgutil.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py
index 26c797f..1683fae 100644
--- a/Lib/pkgutil.py
+++ b/Lib/pkgutil.py
@@ -208,6 +208,7 @@ class ImpLoader:
def _reopen(self):
if self.file and self.file.closed:
+ mod_type = self.etc[2]
if mod_type==imp.PY_SOURCE:
self.file = open(self.filename, 'rU')
elif mod_type in (imp.PY_COMPILED, imp.C_EXTENSION):