From: Stefan Behnel Date: Thu, 22 Oct 2009 06:12:32 +0000 (+0200) Subject: tiny cleanup X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=63402a5042f5c236ce83ef1b747495bd47794d74;p=cython.git tiny cleanup --- diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 091dfa54..83583fe9 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -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