From 63402a5042f5c236ce83ef1b747495bd47794d74 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 22 Oct 2009 08:12:32 +0200 Subject: [PATCH] tiny cleanup --- Cython/Compiler/Optimize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2