From 7ab3978cea4fd00e54f12103626a7068d36bc77e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 27 Nov 2009 12:21:16 +0100 Subject: [PATCH] tiny cleanup --- 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 1826506a..e4c9a4f3 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2696,7 +2696,7 @@ class GeneralCallNode(CallNode): if not self.function.type.is_pyobject: if self.function.type.is_error: self.type = error_type - return error_type + return if hasattr(self.function, 'entry') and not self.function.entry.as_variable: error(self.pos, "Keyword and starred arguments not allowed in cdef functions.") else: -- 2.26.2