]> granicus.if.org Git - python/commit
PyImport_ExecCodeModuleEx(): remove module from sys.modules in error cases.
authorTim Peters <tim.peters@gmail.com>
Mon, 2 Aug 2004 03:52:12 +0000 (03:52 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 2 Aug 2004 03:52:12 +0000 (03:52 +0000)
commit1cd701732fe324adace84a955d48a3dc7753ee59
tree35ba15417c614a36efd6c6dac1e080abb725dfb0
parent94f9b8693038f25a800c3cd795c56c92b6f3541d
PyImport_ExecCodeModuleEx():  remove module from sys.modules in error cases.
PyImport_ReloadModule():  restore the module to sys.modules in error cases.
load_package():  semantic-neutral refactoring from an earlier stab at
                 this patch; giving it a common error exit made the code
                 easier to follow, so retaining that part.
_RemoveModule():  new little utility to delete a key from sys.modules.
Python/import.c