Changed nick class to use __slots__.

This commit is contained in:
Jeremy Fincher 2003-04-20 09:33:41 +00:00
parent 8bdfe2de97
commit 30322c42b6

View File

@ -234,6 +234,7 @@ def shrinkList(L, sep='', limit=425):
class nick(str):
"""This class does case-insensitive comparisons of nicks."""
__slots__ = ('lowered',)
def __init__(self, s):
self.lowered = toLower(s)