Skip to content

Commit c01925d

Browse files
just change traceback.py to make it
1 parent 04bd543 commit c01925d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/traceback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ def _compute_suggestion_error(exc_value, tb, wrong_name):
17551755
parent = importlib.util.find_spec(parent_name)
17561756
else:
17571757
parent = None
1758-
d = []
1758+
d = list(sys.builtin_module_names)
17591759
for finder in sys.meta_path:
17601760
if discover := getattr(finder, 'discover', None):
17611761
d += [spec.name for spec in discover(parent)]

0 commit comments

Comments
 (0)