From: Robert Bradshaw Date: Tue, 4 Nov 2008 19:58:29 +0000 (-0800) Subject: Fix trac #107. X-Git-Tag: 0.10~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2970c311196bd0a4d1287a191b6616d02054d2c3;p=cython.git Fix trac #107. --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index ae348b56..5c985202 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -585,7 +585,7 @@ class CArgDeclNode(Node): else: could_be_name = False base_type = self.base_type.analyse(env, could_be_name = could_be_name) - if self.base_type.arg_name: + if hasattr(self.base_type, 'arg_name') and self.base_type.arg_name: self.declarator.name = self.base_type.arg_name return self.declarator.analyse(base_type, env, nonempty = nonempty) else: