From c733d9774427e31a293dc55b3e1ce9ebfbf5bf10 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Mon, 12 Apr 2010 17:48:59 -0300 Subject: [PATCH] rename local variable __import__ -> py_import in utility code --- Cython/Compiler/ExprNodes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 93757edc..cb4a688d 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -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; } -- 2.26.2