diff options
author | Christian Heimes <christian@cheimes.de> | 2008-01-03 23:05:47 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-01-03 23:05:47 (GMT) |
commit | 819b8bf403f19017f9e7ea11cd83699b517f3394 (patch) | |
tree | 4dd4375104b5d3f1a9acb3c45909f04330240295 /Python/bltinmodule.c | |
parent | 072c0f1b7e3d83dec98313bc07ae92ed15fe7e6d (diff) | |
download | cpython-819b8bf403f19017f9e7ea11cd83699b517f3394.zip cpython-819b8bf403f19017f9e7ea11cd83699b517f3394.tar.gz cpython-819b8bf403f19017f9e7ea11cd83699b517f3394.tar.bz2 |
More PyImport_ImportModule -> PyImport_ImportModuleNoBlock
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 4 |
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"); |