Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
undo the Lib/imp.py change.
It belongs with a later _ERR_MSG cleanup.
  • Loading branch information
gpshead committed Nov 5, 2019
commit 592a52978a6cfe4e831a668d4591c198a3e225c6
2 changes: 1 addition & 1 deletion Lib/imp.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def find_module(name, path=None):
continue
break # Break out of outer loop when breaking out of inner loop.
else:
raise ImportError(f'No module named {name!r}', name=name)
raise ImportError(_ERR_MSG.format(name), name=name)

encoding = None
if 'b' not in mode:
Expand Down