From: Robert Bradshaw Date: Tue, 14 Dec 2010 04:31:48 +0000 (-0800) Subject: Fix any/all. X-Git-Tag: 0.14.1rc0~13^2~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05a16c8c39c05edf6ed554b2c5344c81095f2d7d;p=cython.git Fix any/all. --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index de026275..cea32d7b 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -3401,7 +3401,7 @@ class AttributeNode(ExprNode): return module_scope.lookup_type(self.attribute) if not isinstance(self.obj, (UnicodeNode, StringNode, BytesNode)): base_type = self.obj.analyse_as_type(env) - if base_type and hasattr(base_type, 'scope'): + if base_type and hasattr(base_type, 'scope') and base_type.scope is not None: return base_type.scope.lookup_type(self.attribute) return None