From 819b8bf403f19017f9e7ea11cd83699b517f3394 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 3 Jan 2008 23:05:47 +0000 Subject: More PyImport_ImportModule -> PyImport_ImportModuleNoBlock --- Python/codecs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/codecs.c') diff --git a/Python/codecs.c b/Python/codecs.c index 5a0e4884db..86941b1bdf 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -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 -- cgit v1.2.1