From: Stefan Behnel Date: Thu, 15 May 2008 08:32:13 +0000 (+0200) Subject: simplify X-Git-Tag: 0.9.8rc1~37^2~61 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5aa09e0965fa381034904f3aaab8d92b936c242d;p=cython.git simplify --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 878d9855..88efd56b 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -4202,7 +4202,7 @@ static void __Pyx_AddTraceback(char *funcname) { if (!py_funcname) goto bad; py_globals = PyModule_GetDict(%(GLOBALS)s); if (!py_globals) goto bad; - empty_string = PyString_FromString(""); + empty_string = PyString_FromStringAndSize("", 0); if (!empty_string) goto bad; py_code = PyCode_New( 0, /*int argcount,*/