From: Stefan Behnel Date: Sat, 21 Feb 2009 18:22:37 +0000 (+0100) Subject: comment X-Git-Tag: 0.11.rc~63 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fb48d39605ad778d4c7c3bf8e0267e17f34e51ea;p=cython.git comment --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 99c0203f..f30110e8 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -354,7 +354,7 @@ class GlobalState(object): if entry.init[-1] == "L": self.initwriter.putln('%s = PyLong_FromString((char *)"%s", 0, 0); %s;' % ( entry.cname, - entry.init[:-1], + entry.init[:-1], # strip 'L' for Py3 compatibility self.initwriter.error_goto_if_null(entry.cname, self.module_pos))) else: self.initwriter.putln("%s = PyInt_FromLong(%s); %s;" % (