mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
More PyImport_ImportModule -> PyImport_ImportModuleNoBlock
This commit is contained in:
parent
072c0f1b7e
commit
819b8bf403
4 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue