More PyImport_ImportModule -> PyImport_ImportModuleNoBlock

This commit is contained in:
Christian Heimes 2008-01-03 23:05:47 +00:00
parent 072c0f1b7e
commit 819b8bf403
4 changed files with 5 additions and 5 deletions

View file

@ -850,7 +850,7 @@ static int _PyCodecRegistry_Init(void)
interp->codec_error_registry == NULL)
Py_FatalError("can't initialize codec registry");
mod = PyImport_ImportModuleLevel("encodings", NULL, NULL, NULL, 0);
mod = PyImport_ImportModuleNoBlock("encodings");
if (mod == NULL) {
if (PyErr_ExceptionMatches(PyExc_ImportError)) {
/* Ignore ImportErrors... this is done so that