summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2003-02-14 20:25:56 +0000
committerMarc-André Lemburg <mal@egenix.com>2003-02-14 20:25:56 +0000
commitef1dfa77b807904cb0828d6978bece2139f99a32 (patch)
tree97d48db433fe5cbdb73d872ea42ac1ec8cc03db1 /Python/codecs.c
parent379f9b34e26c5e6898ab214459625edfe685ac5a (diff)
downloadcpython-ef1dfa77b807904cb0828d6978bece2139f99a32.tar.gz
Patch for bug reported in patch #686627: import race condition in
codecs registry startup.
Diffstat (limited to 'Python/codecs.c')
-rw-r--r--Python/codecs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index ec0daf380b..f987cd1a61 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