From 093647365fd2a7d142b321f2766032b200702736 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sat, 28 May 2016 12:06:03 -0700 Subject: [PATCH] Fix pmerge to work with Python 3 Python 3 uses __lt__ and __gt__ instead of __cmp__. --- direct/src/p3d/SeqValue.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/direct/src/p3d/SeqValue.py b/direct/src/p3d/SeqValue.py index 68b655bce3..e83c44dc6a 100644 --- a/direct/src/p3d/SeqValue.py +++ b/direct/src/p3d/SeqValue.py @@ -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)