Correct previous patch looking for warnings module: sys.modules, not
sys.__modules__.
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index fb40e8f..de4a77f 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -92,7 +92,7 @@
/* Save and restore any exceptions */
PyErr_Fetch(&typ, &val, &tb);
- all_modules = PySys_GetObject("__modules__");
+ all_modules = PySys_GetObject("modules");
if (all_modules) {
warnings_module = PyDict_GetItemString(all_modules, "warnings");
/* We keep a ref in the global */