mirror of
https://github.com/python/cpython.git
synced 2025-07-14 06:45:17 +00:00
fix typos, mostly in comments
This commit is contained in:
parent
f339654280
commit
db390c1ad8
10 changed files with 14 additions and 13 deletions
|
@ -273,7 +273,7 @@ def safeimport(path, forceload=0, cache={}):
|
|||
# Did the error occur before or after the module was found?
|
||||
(exc, value, tb) = info = sys.exc_info()
|
||||
if path in sys.modules:
|
||||
# An error occured while executing the imported module.
|
||||
# An error occurred while executing the imported module.
|
||||
raise ErrorDuringImport(sys.modules[path].__file__, info)
|
||||
elif exc is SyntaxError:
|
||||
# A SyntaxError occurred before we could execute the module.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue