mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Changed nick class to use __slots__.
This commit is contained in:
parent
8bdfe2de97
commit
30322c42b6
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user