Skip to content

Commit 2816bf8

Browse files
committed
fix LooseVersion on Python2
1 parent 9ba76dd commit 2816bf8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

easybuild/tools/loose_version.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ def _cmp(self, other):
8181
def __eq__(self, other):
8282
return self._cmp(other) == 0
8383

84+
def __ne__(self, other):
85+
return self._cmp(other) != 0
86+
8487
def __lt__(self, other):
8588
return self._cmp(other) < 0
8689

0 commit comments

Comments
 (0)