mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Fix pmerge to work with Python 3
Python 3 uses __lt__ and __gt__ instead of __cmp__.
This commit is contained in:
parent
e6baa23c08
commit
093647365f
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user