summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2015-01-01 15:51:50 +0100
committerStefan Behnel <stefan_ml@behnel.de>2015-01-01 15:51:50 +0100
commite222eba0ee996f33ec170e5b9d7bf7cd815136af (patch)
tree9e42d6a3025966fbef14ffc408aa49171be13869 /Cython/Compiler/ModuleNode.py
parentea5c0528600ff2e8c9203c1ab26187e9a0aece58 (diff)
downloadcython-e222eba0ee996f33ec170e5b9d7bf7cd815136af.tar.gz
improve variable name in helper function
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py4
1 files changed, 2 insertions, 2 deletions
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);')