From: Stefan Behnel Date: Fri, 27 Nov 2009 11:21:16 +0000 (+0100) Subject: tiny cleanup X-Git-Tag: 0.12.1~117 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7ab3978cea4fd00e54f12103626a7068d36bc77e;p=cython.git tiny cleanup --- 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: