mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 05:02:32 +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):
|
class nick(str):
|
||||||
"""This class does case-insensitive comparisons of nicks."""
|
"""This class does case-insensitive comparisons of nicks."""
|
||||||
|
__slots__ = ('lowered',)
|
||||||
def __init__(self, s):
|
def __init__(self, s):
|
||||||
self.lowered = toLower(s)
|
self.lowered = toLower(s)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user