From 05a16c8c39c05edf6ed554b2c5344c81095f2d7d Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 13 Dec 2010 20:31:48 -0800 Subject: [PATCH] Fix any/all. --- 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 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 -- 2.26.2