Commit 6ac9d394 authored by Stefan Behnel's avatar Stefan Behnel

make sure the optimiser doesn't ignore **kwargs when optimising builtin calls

parent f2b2ac04
......@@ -907,6 +907,8 @@ class OptimizeBuiltinCalls(Visitor.EnvTransform):
arg_tuple = node.positional_args
if not isinstance(arg_tuple, ExprNodes.TupleNode):
return node
if node.starstar_arg:
return node
args = arg_tuple.args
return self._dispatch_to_handler(
node, function, args, node.keyword_args)
......
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