changeset 8892 | 80783605d270 |
parent 8695 | 358d8bed9626 |
child 9184 | b982e88e4836 |
--- a/server/edition.py Mon Apr 08 17:33:49 2013 +0200 +++ b/server/edition.py Mon Apr 22 14:54:22 2013 +0200 @@ -48,9 +48,12 @@ # dict|set keyable return hash(id(self)) - def __cmp__(self, other): + def __lt__(self, other): # we don't want comparison by value inherited from dict - return cmp(id(self), id(other)) + return id(self) < id(other) + + def __eq__(self, other): + return id(self) == id(other) def __setitem__(self, attr, value): assert attr != 'eid'