# HG changeset patch # User RĂ©mi Cardona # Date 1444749386 -7200 # Node ID 97d398e17f8c9b368d564a663aed339eb0985345 # Parent 46f934bebd85f2f06c4b92a67786def2540b747e [py3k] MethodType no longer takes a class argument diff -r 46f934bebd85 -r 97d398e17f8c web/views/tableview.py --- a/web/views/tableview.py Fri Sep 18 18:03:19 2015 +0200 +++ b/web/views/tableview.py Tue Oct 13 17:16:26 2015 +0200 @@ -67,7 +67,7 @@ from copy import copy from types import MethodType -from six import string_types, add_metaclass +from six import string_types, add_metaclass, create_bound_method from six.moves import range from logilab.mtconverter import xml_escape @@ -726,7 +726,7 @@ for aname, member in[('renderfunc', renderfunc), ('sortfunc', sortfunc)]: if isinstance(member, MethodType): - member = MethodType(member.im_func, acopy, acopy.__class__) + member = create_bound_method(member.__func__, acopy) setattr(acopy, aname, member) return acopy finally: