rename local variable __import__ -> py_import in utility code
authorLisandro Dalcin <dalcinl@gmail.com>
Mon, 12 Apr 2010 20:48:59 +0000 (17:48 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Mon, 12 Apr 2010 20:48:59 +0000 (17:48 -0300)
Cython/Compiler/ExprNodes.py

index 93757edcff84605a5657eb4516ba6ca9cc6b78d0..cb4a688d6fa84ff728c777a47a3dc8470761a8e3 100755 (executable)
@@ -6287,14 +6287,14 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
 """,
 impl = """
 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
-    PyObject *__import__ = 0;
+    PyObject *py_import = 0;
     PyObject *empty_list = 0;
     PyObject *module = 0;
     PyObject *global_dict = 0;
     PyObject *empty_dict = 0;
     PyObject *list;
-    __import__ = __Pyx_GetAttrString(%(BUILTINS)s, "__import__");
-    if (!__import__)
+    py_import = __Pyx_GetAttrString(%(BUILTINS)s, "__import__");
+    if (!py_import)
         goto bad;
     if (from_list)
         list = from_list;
@@ -6310,11 +6310,11 @@ static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
     empty_dict = PyDict_New();
     if (!empty_dict)
         goto bad;
-    module = PyObject_CallFunctionObjArgs(__import__,
+    module = PyObject_CallFunctionObjArgs(py_import,
         name, global_dict, empty_dict, list, NULL);
 bad:
     Py_XDECREF(empty_list);
-    Py_XDECREF(__import__);
+    Py_XDECREF(py_import);
     Py_XDECREF(empty_dict);
     return module;
 }