From: Stefan Behnel Date: Fri, 16 May 2008 15:02:20 +0000 (+0200) Subject: fix for name declarations of interned string values in functions X-Git-Tag: 0.9.8rc1~11^2~10^2~15^2~49 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cc09babd4aa7acb2236f0a99139453b7725e1b24;p=cython.git fix for name declarations of interned string values in functions --- 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