From: Stefan Behnel Date: Sat, 23 Feb 2013 09:47:10 +0000 (+0100) Subject: remove Py2.3 work-around X-Git-Tag: 0.19b1~126^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc9b7bf654318bdc337e7a055f2f638e393ab8ed;p=platform%2Fupstream%2Fpython-cython.git remove Py2.3 work-around --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index cadf0df..278b91f 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -224,14 +224,7 @@ class ExprNode(Node): # whether this node with a memoryview type should be broadcast memslice_broadcast = False - try: - _get_child_attrs = operator.attrgetter('subexprs') - except AttributeError: - # Python 2.3 - def __get_child_attrs(self): - return self.subexprs - _get_child_attrs = __get_child_attrs - child_attrs = property(fget=_get_child_attrs) + child_attrs = property(fget=operator.attrgetter('subexprs')) def not_implemented(self, method_name): print_call_chain(method_name, "not implemented") ###