tiny cleanup
authorStefan Behnel <scoder@users.berlios.de>
Thu, 22 Oct 2009 06:12:32 +0000 (08:12 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 22 Oct 2009 06:12:32 +0000 (08:12 +0200)
Cython/Compiler/Optimize.py

index 091dfa54e3a900957a8d77e452f80e85f887ed9a..83583fe9bc5f9651438390a3e51418a1c8c7cc61 100644 (file)
@@ -685,7 +685,7 @@ class OptimizeBuiltinCalls(Visitor.VisitorTransform):
                 return function_handler(node, arg_tuple, kwargs)
             else:
                 return function_handler(node, arg_tuple)
-        elif isinstance(function, ExprNodes.AttributeNode):
+        elif function.is_attribute:
             arg_list = arg_tuple.args
             self_arg = function.obj
             obj_type = self_arg.type