Mercurial > cpython-lru_cache-weakref
diff Python/codecs.c @ 27898:c163f95b300c legacy-trunk
Patch for bug reported in patch #686627: import race condition in
codecs registry startup.
| author | Marc-André Lemburg <mal@egenix.com> |
|---|---|
| date | Fri, 14 Feb 2003 20:25:56 +0000 |
| parents | 60bd7af0324e |
| children | 850626d47574 |
line wrap: on
line diff
--- a/Python/codecs.c Fri Feb 14 19:35:31 2003 +0000 +++ b/Python/codecs.c Fri Feb 14 20:25:56 2003 +0000 @@ -38,7 +38,7 @@ 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
