summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-09 04:57:01 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-09 04:57:01 +0000
commit1e722a137d9d40c0c21eb090512bcf79f26ccca5 (patch)
tree9b70c28351f822cc088807cc495053cdccf706b2
parent7b7aa0bbffbf138771f1a5296317d893bec1af21 (diff)
downloadportage-1e722a137d9d40c0c21eb090512bcf79f26ccca5.tar.gz
portage-1e722a137d9d40c0c21eb090512bcf79f26ccca5.tar.bz2
portage-1e722a137d9d40c0c21eb090512bcf79f26ccca5.zip
For py3k compat, remove Package.__cmp__() and related cmp() function call.
svn path=/main/trunk/; revision=12183
-rw-r--r--pym/_emerge/__init__.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 1f782b451..c9b7113af 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -1500,13 +1500,6 @@ class Package(Task):
(self.type_name, self.root, self.cpv, self.operation)
return self._hash_key
- def __cmp__(self, other):
- if self > other:
- return 1
- elif self < other:
- return -1
- return 0
-
def __lt__(self, other):
if other.cp != self.cp:
return False
@@ -9791,7 +9784,7 @@ class Scheduler(PollScheduler):
portage.match_from_list(
portage.const.PORTAGE_PACKAGE_ATOM, [pkg]):
if self._running_portage:
- return cmp(pkg, self._running_portage) != 0
+ return pkg.cpv != self._running_portage.cpv
return True
return False