mirror of https://github.com/python/cpython
Fix typo in instantiation of ErrorDuringImport.
This commit is contained in:
parent
5a804edd3c
commit
41763b9603
|
@ -1069,7 +1069,7 @@ def locate(path):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
# Some other error occurred before executing the module.
|
# Some other error occurred before executing the module.
|
||||||
raise ErrorDuringImport(filename, sys.exc_info())
|
raise ErrorDuringImport(path, sys.exc_info())
|
||||||
try:
|
try:
|
||||||
x = module
|
x = module
|
||||||
for p in parts[n:]:
|
for p in parts[n:]:
|
||||||
|
|
Loading…
Reference in New Issue