From: Mark Hammond Date: Wed, 16 Jul 2003 01:54:38 +0000 (+0000) Subject: Correct previous patch looking for warnings module: sys.modules, not X-Git-Tag: v2.3c1~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f4e8ca3767db1b9e2b783d0dacf15ea1fbf0589;p=thirdparty%2FPython%2Fcpython.git Correct previous patch looking for warnings module: sys.modules, not sys.__modules__. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index fb40e8f22ea4..de4a77fb6417 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -92,7 +92,7 @@ PyObject *PyModule_GetWarningsModule() /* 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 */