fix keyword arguments in extension type calls
authorStefan Behnel <scoder@users.berlios.de>
Thu, 19 Mar 2009 10:22:02 +0000 (11:22 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 19 Mar 2009 10:22:02 +0000 (11:22 +0100)
Cython/Compiler/ExprNodes.py

index 1fa2255453d4d033ffb32d8614b282b249539cb4..7599d16cad695c98b67f228c28cce085155e756c 100644 (file)
@@ -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: