]> granicus.if.org Git - python/commitdiff
Py_Initialize(): Apply patch by Jürgen Hermann to call
authorBarry Warsaw <barry@python.org>
Mon, 13 Aug 2001 23:04:56 +0000 (23:04 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 13 Aug 2001 23:04:56 +0000 (23:04 +0000)
    _PyImport_FixupExtension() on the exceptions module.  Now
    reload(exceptions) acts just like reload(sys) instead of raising
    an ImportError.

    This closes SF bug #422004.

Python/pythonrun.c

index f5fcaf15de2764e513f723f45303cd3e23ec0d0f..f579f44dc7e70b0706ce95fc1f210b469a3d0eda 100644 (file)
@@ -151,6 +151,7 @@ Py_Initialize(void)
 
        /* initialize builtin exceptions */
        _PyExc_Init();
+       _PyImport_FixupExtension("exceptions", "exceptions");
 
        /* phase 2 of builtins */
        _PyImport_FixupExtension("__builtin__", "__builtin__");