From c1f88120f04b720066936eff5aabf7f922a9412e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 16 Dec 2003 18:14:48 +0000 Subject: [PATCH] Added an assert. --- src/ircutils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ircutils.py b/src/ircutils.py index 496479f54..1937985cb 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -365,6 +365,8 @@ def unDccIP(i): class IrcString(str): """This class does case-insensitive comparison and hashing of nicks.""" def __init__(self, s): + assert isinstance(s, basestring), \ + 'Cannot make an IrcString from %s' % type(s) str.__init__(self, intern(s)) # This does nothing, I fear. self.lowered = toLower(s)