From 92b1ba43a0623a5430d25fd1f10ceed94c40026b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 23 Aug 2008 17:39:06 +0200 Subject: [PATCH] cleanup --- Cython/Compiler/Nodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 6fa53589..34a801af 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1823,8 +1823,9 @@ class DefNode(FuncDefNode): # --- optimised code when we do not receive any keyword arguments if self.num_required_kw_args: + # pure error case: keywords required but not passed code.putln('} else {') - if not self.star_arg: + if not self.star_arg and not self.starstar_arg: self.generate_positional_args_check( max_positional_args, has_fixed_positional_count, code) # simple case: keywords required but none passed -- 2.26.2