[Python-checkins] python/dist/src/Python pythonrun.c,2.194,2.195

mhammond@users.sourceforge.net mhammond@users.sourceforge.net
Tue, 15 Jul 2003 18:54:41 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv22038

Modified Files:
	pythonrun.c 
Log Message:
Correct previous patch looking for warnings module: sys.modules, not 
sys.__modules__.


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.194
retrieving revision 2.195
diff -C2 -d -r2.194 -r2.195
*** pythonrun.c	15 Jul 2003 23:03:55 -0000	2.194
--- pythonrun.c	16 Jul 2003 01:54:38 -0000	2.195
***************
*** 93,97 ****
  	PyErr_Fetch(&typ, &val, &tb);
  
! 	all_modules = PySys_GetObject("__modules__");
  	if (all_modules) {
  		warnings_module = PyDict_GetItemString(all_modules, "warnings");
--- 93,97 ----
  	PyErr_Fetch(&typ, &val, &tb);
  
! 	all_modules = PySys_GetObject("modules");
  	if (all_modules) {
  		warnings_module = PyDict_GetItemString(all_modules, "warnings");