summaryrefslogtreecommitdiff
path: root/Lib/pkgutil.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-11 07:26:27 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-11 07:26:27 +0000
commit7e564d3b64ceb763580065b7538454edb1f53315 (patch)
treef482b243d47b646514ca024859ec06de3c79b734 /Lib/pkgutil.py
parent03256b6bd8646f1a6071bf6491adc6a9b26054a1 (diff)
downloadcpython-7e564d3b64ceb763580065b7538454edb1f53315.tar.gz
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 26c797f0f6..1683fae379 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):