]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct previous patch looking for warnings module: sys.modules, not
authorMark Hammond <mhammond@skippinet.com.au>
Wed, 16 Jul 2003 01:54:38 +0000 (01:54 +0000)
committerMark Hammond <mhammond@skippinet.com.au>
Wed, 16 Jul 2003 01:54:38 +0000 (01:54 +0000)
sys.__modules__.

Python/pythonrun.c

index fb40e8f22ea410dae1eb9b3db7d59366aeddc935..de4a77fb6417a0bce99cf727dd4f17d029594b1d 100644 (file)
@@ -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 */