Skip to content

Commit ca64ada

Browse files
committed
change library list
1 parent df7df73 commit ca64ada

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
@@ -1108,7 +1108,7 @@ def __init__(self, exc_type, exc_value, exc_traceback, *, limit=None,
11081108
self._str += f". Did you mean: '{suggestion}'?"
11091109
elif exc_type and issubclass(exc_type, ModuleNotFoundError) and \
11101110
sys.flags.no_site and \
1111-
getattr(exc_value, "name", None) not in sys.builtin_module_names:
1111+
getattr(exc_value, "name", None) not in sys.stdlib_module_names:
11121112
self._str += (". Site initialization is disabled, did you forget to "
11131113
+ "add the site-packages directory to sys.path?")
11141114
elif exc_type and issubclass(exc_type, (NameError, AttributeError)) and \

0 commit comments

Comments
 (0)