diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2003-07-16 01:54:38 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2003-07-16 01:54:38 (GMT) |
commit | 5f4e8ca3767db1b9e2b783d0dacf15ea1fbf0589 (patch) | |
tree | 2a2f97dc71cce475557e3ce4089f73284b13edfa /Python/pythonrun.c | |
parent | b233e5440952ea56e8120dac62d749062af6fdfe (diff) | |
download | cpython-5f4e8ca3767db1b9e2b783d0dacf15ea1fbf0589.zip cpython-5f4e8ca3767db1b9e2b783d0dacf15ea1fbf0589.tar.gz cpython-5f4e8ca3767db1b9e2b783d0dacf15ea1fbf0589.tar.bz2 |
Correct previous patch looking for warnings module: sys.modules, not
sys.__modules__.
Diffstat (limited to 'Python/pythonrun.c')
-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 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 */ |