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:
Emmanuel Gil Peyrot 2020-12-27 03:17:36 +01:00 committed by Link Mauve
parent 78b3933e4d
commit c7bce6ba97

View file

@ -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,