Mercurial > cpython-lru_cache-weakref
diff Python/codecs.c @ 44442:fa2f7183b1af
More PyImport_ImportModule -> PyImport_ImportModuleNoBlock
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Thu, 03 Jan 2008 23:05:47 +0000 |
| parents | 86a2679dca46 |
| children | 96b34263e448 |
line wrap: on
line diff
--- a/Python/codecs.c Thu Jan 03 23:01:04 2008 +0000 +++ b/Python/codecs.c Thu Jan 03 23:05:47 2008 +0000 @@ -850,7 +850,7 @@ 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
