[Checkins] SVN: lovely.rating/trunk/src/lovely/rating/rating.py fix compare

Bernd Dorn bernd.dorn at lovelysystems.com
Mon Feb 26 01:42:47 EST 2007


Log message for revision 72808:
  fix compare

Changed:
  U   lovely.rating/trunk/src/lovely/rating/rating.py

-=-
Modified: lovely.rating/trunk/src/lovely/rating/rating.py
===================================================================
--- lovely.rating/trunk/src/lovely/rating/rating.py	2007-02-26 00:15:10 UTC (rev 72807)
+++ lovely.rating/trunk/src/lovely/rating/rating.py	2007-02-26 06:42:46 UTC (rev 72808)
@@ -43,6 +43,6 @@
 
     def __cmp__(self, other):
         if not isinstance(other, Rating):
-            return super(Rating, self).__cmp__(other)
+            return cmp(super(Rating, self), (other))
         return cmp((self.id, self.value, self.user),
                    (other.id, other.value, other.user))



More information about the Checkins mailing list