diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2003-07-16 01:54:38 +0000 |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2003-07-16 01:54:38 +0000 |
commit | ea659db390ac804de581eac6d1e6f775533f1a7d (patch) | |
tree | adc6609559715d378f50f89dff3b007a14b0b31a /Python | |
parent | d52700845438380b2dbb84747ba57cc15cea4d79 (diff) | |
download | cpython-ea659db390ac804de581eac6d1e6f775533f1a7d.tar.gz |
Correct previous patch looking for warnings module: sys.modules, not
sys.__modules__.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index fb40e8f22e..de4a77fb64 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 */ |