diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-11 07:26:27 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-06-11 07:26:27 +0000 |
commit | 7e564d3b64ceb763580065b7538454edb1f53315 (patch) | |
tree | f482b243d47b646514ca024859ec06de3c79b734 /Lib/pkgutil.py | |
parent | 03256b6bd8646f1a6071bf6491adc6a9b26054a1 (diff) | |
download | cpython-7e564d3b64ceb763580065b7538454edb1f53315.tar.gz |
Fix errors found by pychecker
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r-- | Lib/pkgutil.py | 1 |
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): |