Commit 92b1ba43 authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent aa022a4a
...@@ -1823,8 +1823,9 @@ class DefNode(FuncDefNode): ...@@ -1823,8 +1823,9 @@ class DefNode(FuncDefNode):
# --- optimised code when we do not receive any keyword arguments # --- optimised code when we do not receive any keyword arguments
if self.num_required_kw_args: if self.num_required_kw_args:
# pure error case: keywords required but not passed
code.putln('} else {') code.putln('} else {')
if not self.star_arg: if not self.star_arg and not self.starstar_arg:
self.generate_positional_args_check( self.generate_positional_args_check(
max_positional_args, has_fixed_positional_count, code) max_positional_args, has_fixed_positional_count, code)
# simple case: keywords required but none passed # simple case: keywords required but none passed
......
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