Commit 45c523f9 authored by Stefan Behnel's avatar Stefan Behnel

strip some unnecessary line formatting from the argument unpacking code

parent 99f825de
...@@ -2709,9 +2709,6 @@ class DefNode(FuncDefNode): ...@@ -2709,9 +2709,6 @@ class DefNode(FuncDefNode):
reversed_args = list(enumerate(positional_args))[::-1] reversed_args = list(enumerate(positional_args))[::-1]
for i, arg in reversed_args: for i, arg in reversed_args:
if i >= min_positional_args-1: if i >= min_positional_args-1:
if min_positional_args > 1:
code.putln('case %2d:' % (i+1)) # pure code beautification
else:
code.put('case %2d: ' % (i+1)) code.put('case %2d: ' % (i+1))
code.putln("values[%d] = PyTuple_GET_ITEM(%s, %d);" % (i, Naming.args_cname, i)) code.putln("values[%d] = PyTuple_GET_ITEM(%s, %d);" % (i, Naming.args_cname, i))
if min_positional_args == 0: if min_positional_args == 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment