Fix pmerge to work with Python 3

Python 3 uses __lt__ and __gt__ instead of __cmp__.
This commit is contained in:
Mitchell Stokes 2016-05-28 12:06:03 -07:00
parent e6baa23c08
commit 093647365f

View File

@ -77,6 +77,12 @@ class SeqValue:
""" Compares to another seq value. """
return cmp(self.value, other.value)
def __lt__(self, other):
return self.value < other.value
def __gt__(self, other):
return self.value > other.value
def __bool__(self):
return bool(self.value)