From 9cac1c4574877e06f5e5337ac34d6a5c93c73eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Fri, 14 Feb 2003 20:25:56 +0000 Subject: Patch for bug reported in patch #686627: import race condition in codecs registry startup. --- Python/codecs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/codecs.c b/Python/codecs.c index ec0daf3..f987cd1 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -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 -- cgit v0.12