From 8ea0b38f5b2e61702f113dba511ab72068417336 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 19 Mar 2009 11:22:02 +0100 Subject: [PATCH] fix keyword arguments in extension type calls --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 1fa22554..7599d16c 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2527,7 +2527,7 @@ class GeneralCallNode(CallNode): self.keyword_args.analyse_types(env) if self.starstar_arg: self.starstar_arg.analyse_types(env) - if self.function.type is not py_object_type: + if not self.function.type.is_pyobject: if hasattr(self.function, 'entry') and not self.function.entry.as_variable: error(self.pos, "Keyword arguments not allowed in cdef functions.") else: -- 2.26.2