mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Fix errors found by pychecker
This commit is contained in:
parent
7d5b6e8991
commit
f992a2b11e
2 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue