From e222eba0ee996f33ec170e5b9d7bf7cd815136af Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 1 Jan 2015 15:51:50 +0100 Subject: improve variable name in helper function --- Cython/Compiler/ModuleNode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Cython/Compiler/ModuleNode.py') diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index df3079b56..3cbdbd993 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1964,14 +1964,14 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.enter_cfunc_scope() # as we need labels code.putln("static int %s(PyObject *o, PyObject* py_name, char *name) {" % Naming.import_star_set) - code.putln("static const char* type_names[] = {") + code.putln("static const char* internal_type_names[] = {") for name, entry in sorted(env.entries.items()): if entry.is_type: code.putln('"%s",' % name) code.putln("0") code.putln("};") - code.putln("const char** type_name = type_names;") + code.putln("const char** type_name = internal_type_names;") code.putln("while (*type_name) {") code.putln("if (__Pyx_StrEq(name, *type_name)) {") code.putln('PyErr_Format(PyExc_TypeError, "Cannot overwrite C type %s", name);') -- cgit v1.2.1