entity.py
changeset 8907 ddeb02b02222
parent 8900 010a59e12d89
parent 8892 80783605d270
child 8930 6a02be304486
--- a/entity.py	Tue Apr 23 16:07:02 2013 +0200
+++ b/entity.py	Tue Apr 23 18:15:10 2013 +0200
@@ -554,7 +554,10 @@
         return '<Entity %s %s %s at %s>' % (
             self.e_schema, self.eid, list(self.cw_attr_cache), id(self))
 
-    def __cmp__(self, other):
+    def __lt__(self, other):
+        raise NotImplementedError('comparison not implemented for %s' % self.__class__)
+
+    def __eq__(self, other):
         raise NotImplementedError('comparison not implemented for %s' % self.__class__)
 
     def _cw_update_attr_cache(self, attrcache):