From cc09babd4aa7acb2236f0a99139453b7725e1b24 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 16 May 2008 17:02:20 +0200 Subject: [PATCH] fix for name declarations of interned string values in functions --- Cython/Compiler/Nodes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index ececf2c3..ec4dfe2a 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -248,8 +248,9 @@ class BlockNode: if entries: code.putln("") for entry in entries: - code.putln( - "static PyObject *%s;" % entry.pystring_cname) + if not entry.is_interned: + code.putln( + "static PyObject *%s;" % entry.pystring_cname) def generate_interned_num_decls(self, env, code): # Flush accumulated interned nums from the global scope -- 2.26.2