summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-03 23:05:47 +0000
committerChristian Heimes <christian@cheimes.de>2008-01-03 23:05:47 +0000
commit41fc7d8caba67e7847ab3a2739a91a67f3a26046 (patch)
tree2258cf1ae520a8c4e61792a289fdf87ba9b50d15 /Python/codecs.c
parent97246976f0de6b4904d4966864bbf0799993fe18 (diff)
downloadcpython-41fc7d8caba67e7847ab3a2739a91a67f3a26046.tar.gz
More PyImport_ImportModule -> PyImport_ImportModuleNoBlock
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 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