Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 44442:fa2f7183b1af
More PyImport_ImportModule -> PyImport_ImportModuleNoBlock
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Thu, 03 Jan 2008 23:05:47 +0000 |
| parents | 2750d531fdc0 |
| children | 5298abbdd91c |
line wrap: on
line diff
--- a/Python/bltinmodule.c Thu Jan 03 23:01:04 2008 +0000 +++ b/Python/bltinmodule.c Thu Jan 03 23:05:47 2008 +0000 @@ -281,7 +281,7 @@ 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 @@ 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");
