From: Stefan Behnel Date: Sat, 6 Mar 2010 16:16:15 +0000 (+0100) Subject: code simplification X-Git-Tag: 0.13.beta0~2^2~99^2~1 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e98509f35bec24269da2275b3d556bce3b885eff;p=cython.git code simplification --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index c80b0c0f..dab0d082 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -2441,7 +2441,7 @@ class DefNode(FuncDefNode): # it looks funny to separate the init-to-0 from setting the # default value, but C89 needs this code.putln("PyObject* values[%d] = {%s};" % ( - max_args, ','.join(['0']*max_args))) + max_args, ','.join('0'*max_args))) for i, default_value in default_args: code.putln('values[%d] = %s;' % (i, default_value))