diff options
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/pegen.c | 2 | ||||
-rw-r--r-- | Parser/tokenizer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Parser/pegen.c b/Parser/pegen.c index 4158a81..870085e 100644 --- a/Parser/pegen.c +++ b/Parser/pegen.c @@ -88,7 +88,7 @@ init_normalization(Parser *p) if (p->normalize) { return 1; } - PyObject *m = PyImport_ImportModuleNoBlock("unicodedata"); + PyObject *m = PyImport_ImportModule("unicodedata"); if (!m) { return 0; diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index a560572..5e35d6f 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -461,7 +461,7 @@ fp_setreadl(struct tok_state *tok, const char* enc) return 0; } - io = PyImport_ImportModuleNoBlock("io"); + io = PyImport_ImportModule("io"); if (io == NULL) return 0; |