Fix errors found by pychecker

This commit is contained in:
Neal Norwitz 2006-06-11 07:26:27 +00:00
parent 7d5b6e8991
commit f992a2b11e
2 changed files with 3 additions and 2 deletions

View file

@ -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):