Commit d44a0845 authored by Stefan Behnel's avatar Stefan Behnel

fix kwargs mapping in Py2.[45]

parent 5023b672
......@@ -4437,9 +4437,8 @@ class GeneralCallNode(CallNode):
temps = []
if len(kwargs.key_value_pairs) > matched_kwargs_count:
unmatched_args = declared_args[len(args):]
keywords = dict([ (arg.key.value, (i, arg))
for i, arg in enumerate(kwargs.key_value_pairs,
len(pos_args)) ])
keywords = dict([ (arg.key.value, (i+len(pos_args), arg))
for i, arg in enumerate(kwargs.key_value_pairs) ])
first_missing_keyword = None
for decl_arg in unmatched_args:
name = decl_arg.name
......
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