Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b233e54 commit 5f4e8caCopy full SHA for 5f4e8ca
1 file changed
Python/pythonrun.c
@@ -92,7 +92,7 @@ PyObject *PyModule_GetWarningsModule()
92
/* Save and restore any exceptions */
93
PyErr_Fetch(&typ, &val, &tb);
94
95
- all_modules = PySys_GetObject("__modules__");
+ all_modules = PySys_GetObject("modules");
96
if (all_modules) {
97
warnings_module = PyDict_GetItemString(all_modules, "warnings");
98
/* We keep a ref in the global */
0 commit comments