Added a couple asserts.

This commit is contained in:
Jeremy Fincher 2004-12-06 22:42:34 +00:00
parent e4fa4dec7b
commit eac5d2f9f8

View File

@ -106,6 +106,8 @@ def toLower(s, casemapping=None):
def strEqual(nick1, nick2): def strEqual(nick1, nick2):
"""Returns True if nick1 == nick2 according to IRC case rules.""" """Returns True if nick1 == nick2 according to IRC case rules."""
assert isinstance(nick1, basestring)
assert isinstance(nick2, basestring)
return toLower(nick1) == toLower(nick2) return toLower(nick1) == toLower(nick2)
nickEqual = strEqual nickEqual = strEqual