diff Python/pythonrun.c @ 29879:ed8709b1a3ef legacy-trunk

Correct previous patch looking for warnings module: sys.modules, not sys.__modules__.
author Mark Hammond <mhammond@skippinet.com.au>
date Wed, 16 Jul 2003 01:54:38 +0000
parents 72cbc41ccc2f
children a88e6dfbfd6d
line wrap: on
line diff
--- a/Python/pythonrun.c	Tue Jul 15 23:16:01 2003 +0000
+++ b/Python/pythonrun.c	Wed Jul 16 01:54:38 2003 +0000
@@ -92,7 +92,7 @@
 	/* 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 */