summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2003-07-16 01:54:38 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2003-07-16 01:54:38 (GMT)
commit5f4e8ca3767db1b9e2b783d0dacf15ea1fbf0589 (patch)
tree2a2f97dc71cce475557e3ce4089f73284b13edfa
parentb233e5440952ea56e8120dac62d749062af6fdfe (diff)
downloadcpython-5f4e8ca3767db1b9e2b783d0dacf15ea1fbf0589.zip
cpython-5f4e8ca3767db1b9e2b783d0dacf15ea1fbf0589.tar.gz
cpython-5f4e8ca3767db1b9e2b783d0dacf15ea1fbf0589.tar.bz2
Correct previous patch looking for warnings module: sys.modules, not
sys.__modules__.
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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 */