From e23fa611d6a56c77a16f14fb31436ba1e92c1402 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 4 Aug 2012 13:25:47 +0200 Subject: [PATCH] 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. --- src/irclib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irclib.py b/src/irclib.py index a0579f5a5..86f5b40a9 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -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)