[Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.143,2.144

Barry Warsaw bwarsaw@users.sourceforge.net
Mon, 13 Aug 2001 16:04:59 -0700


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

Modified Files:
	pythonrun.c 
Log Message:
Py_Initialize(): Apply patch by Jürgen Hermann to call
    _PyImport_FixupExtension() on the exceptions module.  Now
    reload(exceptions) acts just like reload(sys) instead of raising
    an ImportError.

    This closes SF bug #422004.


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.143
retrieving revision 2.144
diff -C2 -d -r2.143 -r2.144
*** pythonrun.c	2001/08/10 21:41:33	2.143
--- pythonrun.c	2001/08/13 23:04:56	2.144
***************
*** 152,155 ****
--- 152,156 ----
  	/* initialize builtin exceptions */
  	_PyExc_Init();
+ 	_PyImport_FixupExtension("exceptions", "exceptions");
  
  	/* phase 2 of builtins */