Skip to content

Commit cc19fa9

Browse files
Update traceback.py
1 parent 2bf5367 commit cc19fa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/traceback.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,7 @@ def _compute_suggestion_error(exc_value, tb, wrong_name):
16601660
if module_result:
16611661
_close_name_list.append(module_result)
16621662
_close_name_list.sort()
1663-
return _closed_name_list[0]
1663+
return _close_name_list[0]
16641664
else:
16651665
if wrong_name in sum(list_d, []):
16661666
path = ""
@@ -1678,7 +1678,7 @@ def _compute_suggestion_error(exc_value, tb, wrong_name):
16781678
if module_result:
16791679
_close_name_list.append(module_result)
16801680
_close_name_list.sort()
1681-
return _closed_name_list[0]
1681+
return _close_name_list[0]
16821682
else:
16831683
if (_closed_name := _calculate_closed_name(module_name, sorted(sys.stdlib_module_names))):
16841684
return _closed_name
@@ -1688,7 +1688,7 @@ def _compute_suggestion_error(exc_value, tb, wrong_name):
16881688
if module_result:
16891689
_close_name_list.append(module_result)
16901690
_close_name_list.sort()
1691-
return _closed_name_list[0]
1691+
return _close_name_list[0]
16921692

16931693
if not os.path.exists(path) or not os.path.isdir(path):
16941694
exc_value.msg = f"module '{module_name}' has no child module '{wrong_name_list[1]}'; '{module_name}' is not a package"

0 commit comments

Comments
 (0)