Commit 68b35ca1 authored by Stefan Behnel's avatar Stefan Behnel

minor cleanup

parent dfe49a97
...@@ -1258,7 +1258,7 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform): ...@@ -1258,7 +1258,7 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform):
# specific handlers for simple call nodes # specific handlers for simple call nodes
def _handle_simple_function_float(self, node, pos_args): def _handle_simple_function_float(self, node, pos_args):
if len(pos_args) == 0: if not pos_args:
return ExprNodes.FloatNode(node.pos, value='0.0') return ExprNodes.FloatNode(node.pos, value='0.0')
if len(pos_args) > 1: if len(pos_args) > 1:
self._error_wrong_arg_count('float', node, pos_args, 1) self._error_wrong_arg_count('float', node, pos_args, 1)
......
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