summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 98285b9..05ae915 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -281,7 +281,7 @@ static PyObject *
builtin_filter(PyObject *self, PyObject *args)
{
PyObject *itertools, *ifilter, *result;
- itertools = PyImport_ImportModule("itertools");
+ itertools = PyImport_ImportModuleNoBlock("itertools");
if (itertools == NULL)
return NULL;
ifilter = PyObject_GetAttrString(itertools, "ifilter");
@@ -796,7 +796,7 @@ static PyObject *
builtin_map(PyObject *self, PyObject *args)
{
PyObject *itertools, *imap, *result;
- itertools = PyImport_ImportModule("itertools");
+ itertools = PyImport_ImportModuleNoBlock("itertools");
if (itertools == NULL)
return NULL;
imap = PyObject_GetAttrString(itertools, "imap");