core: Prevent infinite recursion with Pypy.

This commit is contained in:
Valentin Lorentz 2013-01-06 20:24:02 +01:00
parent add5e07d97
commit 726558115d

View File

@ -508,7 +508,7 @@ class IrcString(str):
"""This class does case-insensitive comparison and hashing of nicks."""
def __new__(cls, s=''):
x = super(IrcString, cls).__new__(cls, s)
x.lowered = toLower(x)
x.lowered = str(toLower(x))
return x
def __eq__(self, s):