Trim all messages by 24 bytes on 64-bit systems
Message was redefining the slots of its parent class, which allocates them twice and we don’t want that.
This commit is contained in:
parent
78b3933e4d
commit
c7bce6ba97
1 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ class MucOwnJoinMessage(InfoMessage):
|
|||
|
||||
class XMLLog(BaseMessage):
|
||||
"""XML Log message"""
|
||||
__slots__ = ('txt', 'time', 'identifier', 'incoming')
|
||||
__slots__ = ('incoming')
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -75,7 +75,7 @@ class XMLLog(BaseMessage):
|
|||
|
||||
|
||||
class StatusMessage(BaseMessage):
|
||||
__slots__ = ('txt', 'time', 'identifier', 'format_string', 'format_args')
|
||||
__slots__ = ('format_string', 'format_args')
|
||||
|
||||
def __init__(self, format_string: str, format_args: dict):
|
||||
BaseMessage.__init__(
|
||||
|
@ -94,8 +94,8 @@ class StatusMessage(BaseMessage):
|
|||
|
||||
|
||||
class Message(BaseMessage):
|
||||
__slots__ = ('txt', 'nick_color', 'time', 'nickname', 'user', 'delayed', 'history',
|
||||
'identifier', 'top', 'highlight', 'me', 'old_message', 'revisions',
|
||||
__slots__ = ('nick_color', 'nickname', 'user', 'delayed', 'history',
|
||||
'top', 'highlight', 'me', 'old_message', 'revisions',
|
||||
'jid', 'ack')
|
||||
|
||||
def __init__(self,
|
||||
|
|
Loading…
Reference in a new issue