entity.py
changeset 8892 80783605d270
parent 8793 3305b4a9df49
child 8907 ddeb02b02222
--- a/entity.py	Mon Apr 08 17:33:49 2013 +0200
+++ b/entity.py	Mon Apr 22 14:54:22 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):