aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r--mesonbuild/mesonlib.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index 2beeae7..7b9aa1e 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -530,7 +530,14 @@ class Version:
return self.__cmp__(other) == -1
def __eq__(self, other):
- return self.__cmp__(other) == 0
+ if isinstance(other, Version):
+ return self._v == other._v
+ return NotImplemented
+
+ def __ne__(self, other):
+ if isinstance(other, Version):
+ return self._v != other._v
+ return NotImplemented
def __cmp__(self, other):
def cmp(a, b):