From: Stefan Behnel Date: Thu, 19 Mar 2009 10:22:02 +0000 (+0100) Subject: fix keyword arguments in extension type calls X-Git-Tag: 0.11.1.alpha~46 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=8ea0b38f5b2e61702f113dba511ab72068417336;p=cython.git fix keyword arguments in extension type calls --- 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: