mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Patch for bug reported in patch #686627: import race condition in
codecs registry startup.
This commit is contained in:
parent
117910dc44
commit
9cac1c4574
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ int import_encodings(void)
|
|||
PyObject *mod;
|
||||
|
||||
import_encodings_called = 1;
|
||||
mod = PyImport_ImportModule("encodings");
|
||||
mod = PyImport_ImportModuleEx("encodings", NULL, NULL, NULL);
|
||||
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