From 726558115de7e73b16f6a73ace746320bc042a9e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 6 Jan 2013 20:24:02 +0100 Subject: [PATCH] core: Prevent infinite recursion with Pypy. --- src/ircutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircutils.py b/src/ircutils.py index ffd71a2d2..fa340458e 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -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):