Skip to content

Commit

Permalink
lib: Fix safeRef regression after removing __cmp__ in #4684 (#4896)
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix authored Dec 29, 2024
1 parent 7f1934f commit ce44da6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions python/grass/pydispatch/saferef.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,6 @@ def __nonzero__(self):

__bool__ = __nonzero__

def __eq__(self, other):
if not isinstance(other, self.__class__):
return False
return self.key == other.key

def __lt__(self, other):
if not isinstance(other, self.__class__):
return self.__class__.__name__ < other.__class__.__name__
return self.key < other.key

def __gt__(self, other):
if not isinstance(other, self.__class__):
return self.__class__.__name__ > other.__class__.__name__
return self.key > other.key

def __call__(self):
"""Return a strong reference to the bound method
Expand Down

0 comments on commit ce44da6

Please sign in to comment.