diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-12-12 07:45:13 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-12-12 07:45:13 +0000 |
commit | 84b6c34b5e0044db1d89268ec74614b94d4c8754 (patch) | |
tree | e9f62673a0c8b4308668de07a0b38394bbe6c4e0 | |
parent | 3714f1aa2be08ff9f5c8da9a1d185dc0b704eb65 (diff) | |
download | portage-84b6c34b5e0044db1d89268ec74614b94d4c8754.tar.gz portage-84b6c34b5e0044db1d89268ec74614b94d4c8754.tar.bz2 portage-84b6c34b5e0044db1d89268ec74614b94d4c8754.zip |
For higher efficiency, call self.__int__() instead of int(self).
svn path=/main/trunk/; revision=5278
-rwxr-xr-x | bin/emerge | 14 |
1 files changed, 7 insertions, 7 deletions
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: |