For higher efficiency, call self.__int__() instead of int(self).
authorZac Medico <zmedico@gentoo.org>
Tue, 12 Dec 2006 07:45:13 +0000 (07:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 12 Dec 2006 07:45:13 +0000 (07:45 -0000)
svn path=/main/trunk/; revision=5278

bin/emerge

index 048c4abb741f12c2f13414585c996979de4c1ff8..dd6f09eebdfe9e002e926125f1527bb93c4cf5c6 100755 (executable)
@@ -678,22 +678,22 @@ class DepPriority(object):
                        return -3
                return -4
        def __lt__(self, other):
-               return int(self) < other
+               return self.__int__() < other
        def __le__(self, other):
-               return int(self) <= other
+               return self.__int__() <= other
        def __eq__(self, other):
-               return int(self) == other
+               return self.__int__() == other
        def __ne__(self, other):
-               return int(self) != other
+               return self.__int__() != other
        def __gt__(self, other):
-               return int(self) > other
+               return self.__int__() > other
        def __ge__(self, other):
-               return int(self) >= other
+               return self.__int__() >= other
        def copy(self):
                import copy
                return copy.copy(self)
        def __str__(self):
-               myvalue = int(self)
+               myvalue = self.__int__()
                if myvalue > self.MEDIUM:
                        return "hard"
                if myvalue > self.SOFT: