diff Python/pythonrun.c @ 19237:e110cd4fc3c6 legacy-trunk

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.
author Barry Warsaw <barry@python.org>
date Mon, 13 Aug 2001 23:04:56 +0000
parents 97a3d3d7029f
children 157bbb896198
line wrap: on
line diff
--- a/Python/pythonrun.c	Mon Aug 13 22:25:24 2001 +0000
+++ b/Python/pythonrun.c	Mon Aug 13 23:04:56 2001 +0000
@@ -151,6 +151,7 @@
 
 	/* initialize builtin exceptions */
 	_PyExc_Init();
+	_PyImport_FixupExtension("exceptions", "exceptions");
 
 	/* phase 2 of builtins */
 	_PyImport_FixupExtension("__builtin__", "__builtin__");