KeySequence: Add __le__/__ge__

This commit is contained in:
Florian Bruhin 2018-03-04 17:37:07 +01:00
parent fb7c75a090
commit 3649a36869

View File

@ -318,6 +318,14 @@ class KeySequence:
# pylint: disable=protected-access
return self._sequences > other._sequences
def __le__(self, other):
# pylint: disable=protected-access
return self._sequences <= other._sequences
def __ge__(self, other):
# pylint: disable=protected-access
return self._sequences >= other._sequences
def __eq__(self, other):
# pylint: disable=protected-access
return self._sequences == other._sequences