mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
More PyImport_ImportModule -> PyImport_ImportModuleNoBlock
This commit is contained in:
parent
072c0f1b7e
commit
819b8bf403
4 changed files with 5 additions and 5 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue