summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-07-26 10:41:31 +0100
committerBenjamin Schubert <contact@benschubert.me>2019-07-26 10:41:31 +0100
commit367f073386c7dc3870ff7fee4764ecd00aa2dc80 (patch)
tree34a62491a91a6c3e55e0209b487d7394a1862980
parent0b118ed2e7ef47f85e941d22512f17db43e43035 (diff)
downloadbuildstream-367f073386c7dc3870ff7fee4764ecd00aa2dc80.tar.gz
fixup! WIP
-rw-r--r--src/buildstream/_types.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_types.pyx b/src/buildstream/_types.pyx
index 14118078d..53e22ff61 100644
--- a/src/buildstream/_types.pyx
+++ b/src/buildstream/_types.pyx
@@ -66,12 +66,12 @@ class FastEnum(metaclass=MetaFastEnum):
def __lt__(self, other):
if type(self) != type(other):
- return NotImplemented
+ raise ValueError("Unexpected comparison between {} and {}".format(self, repr(other)))
return self.value < other.value
def __ge__(self, other):
if type(self) != type(other):
- return NotImplemented
+ return ValueError("Unexpected comparison between {} and {}".format(self, repr(other)))
return self.value >= other.value
def __eq__(self, other):