4406:cb7b6c556fc5 | 4408:a0b6d96985aa |
---|---|
141 for p in path: # search in path | 141 for p in path: # search in path |
142 pathname = os.path.join(p, name) | 142 pathname = os.path.join(p, name) |
143 if os.path.exists(pathname): | 143 if os.path.exists(pathname): |
144 return (open(pathname), pathname, (ext, 'r', PY_SOURCE)) | 144 return (open(pathname), pathname, (ext, 'r', PY_SOURCE)) |
145 raise ImportError | 145 raise ImportError |
146 except SyntaxError: | |
147 # re-raise as an import error | |
148 raise ImportError |