Commit c733d977 authored by Lisandro Dalcin's avatar Lisandro Dalcin

rename local variable __import__ -> py_import in utility code

parent 62cc7b9f
...@@ -6287,14 +6287,14 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/ ...@@ -6287,14 +6287,14 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
""", """,
impl = """ impl = """
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) { static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
PyObject *__import__ = 0; PyObject *py_import = 0;
PyObject *empty_list = 0; PyObject *empty_list = 0;
PyObject *module = 0; PyObject *module = 0;
PyObject *global_dict = 0; PyObject *global_dict = 0;
PyObject *empty_dict = 0; PyObject *empty_dict = 0;
PyObject *list; PyObject *list;
__import__ = __Pyx_GetAttrString(%(BUILTINS)s, "__import__"); py_import = __Pyx_GetAttrString(%(BUILTINS)s, "__import__");
if (!__import__) if (!py_import)
goto bad; goto bad;
if (from_list) if (from_list)
list = from_list; list = from_list;
...@@ -6310,11 +6310,11 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) { ...@@ -6310,11 +6310,11 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
empty_dict = PyDict_New(); empty_dict = PyDict_New();
if (!empty_dict) if (!empty_dict)
goto bad; goto bad;
module = PyObject_CallFunctionObjArgs(__import__, module = PyObject_CallFunctionObjArgs(py_import,
name, global_dict, empty_dict, list, NULL); name, global_dict, empty_dict, list, NULL);
bad: bad:
Py_XDECREF(empty_list); Py_XDECREF(empty_list);
Py_XDECREF(__import__); Py_XDECREF(py_import);
Py_XDECREF(empty_dict); Py_XDECREF(empty_dict);
return module; return module;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment