From: Zac Medico Date: Tue, 12 Dec 2006 07:45:13 +0000 (-0000) Subject: For higher efficiency, call self.__int__() instead of int(self). X-Git-Tag: v2.1.2~312 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84b6c34b5e0044db1d89268ec74614b94d4c8754;p=portage.git For higher efficiency, call self.__int__() instead of int(self). svn path=/main/trunk/; revision=5278 --- diff --git a/bin/emerge b/bin/emerge index 048c4abb7..dd6f09eeb 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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: