mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Call other.__eq__ in irclib.Irc.__eq__ instead of using the == comparator.
Here, this operator is not reflexive, and Python 3 calls the second members resulting in a stack overflow.
This commit is contained in:
parent
1cb657ddb2
commit
e23fa611d6
@ -1073,7 +1073,7 @@ class Irc(IrcCommandDispatcher):
|
||||
if isinstance(other, self.__class__):
|
||||
return id(self) == id(other)
|
||||
else:
|
||||
return other == self
|
||||
return other.__eq__(self)
|
||||
|
||||
def __ne__(self, other):
|
||||
return not (self == other)
|
||||
|
Loading…
Reference in New Issue
Block a user