Skip to content

Commit

Permalink
Merge d9f4166 into 2be4988
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-maier committed Jul 25, 2020
2 parents 2be4988 + d9f4166 commit 056dddc
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions nocasedict/_nocasedict.py
Expand Up @@ -529,7 +529,7 @@ def __ne__(self, other):
"""
return not self == other

def __raise_ordering_not_supported(self, other, op):
def _raise_ordering_not_supported(self, other, op):
"""
Function to raise a TypeError indicating that ordering of this class
is not supported.
Expand All @@ -539,20 +539,16 @@ def __raise_ordering_not_supported(self, other, op):
format(op, type(self), type(other)))

def __lt__(self, other):
# TODO: Implement or not - see issue #10
self.__raise_ordering_not_supported(other, '<')
self._raise_ordering_not_supported(other, '<')

def __gt__(self, other):
# TODO: Implement or not - see issue #10
self.__raise_ordering_not_supported(other, '>')
self._raise_ordering_not_supported(other, '>')

def __ge__(self, other):
# TODO: Implement or not - see issue #10
self.__raise_ordering_not_supported(other, '>=')
self._raise_ordering_not_supported(other, '>=')

def __le__(self, other):
# TODO: Implement or not - see issue #10
self.__raise_ordering_not_supported(other, '<=')
self._raise_ordering_not_supported(other, '<=')

def __hash__(self):
# TODO: Implement or not - see issue #10
Expand Down

0 comments on commit 056dddc

Please sign in to comment.