diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2020-12-27 03:17:36 +0100 |
---|---|---|
committer | Link Mauve <linkmauve@linkmauve.fr> | 2020-12-27 03:34:48 +0100 |
commit | c7bce6ba9749727105c720b19a71df0bd183ece4 (patch) | |
tree | e2922c2fd07cab35ae1f589f203a3faff44bdf5b | |
parent | 78b3933e4df6dce474336d75843497740317844e (diff) | |
download | poezio-c7bce6ba9749727105c720b19a71df0bd183ece4.tar.gz poezio-c7bce6ba9749727105c720b19a71df0bd183ece4.tar.bz2 poezio-c7bce6ba9749727105c720b19a71df0bd183ece4.tar.xz poezio-c7bce6ba9749727105c720b19a71df0bd183ece4.zip |
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.
-rw-r--r-- | poezio/ui/types.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/poezio/ui/types.py b/poezio/ui/types.py index e75f8eba..8c049525 100644 --- a/poezio/ui/types.py +++ b/poezio/ui/types.py @@ -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, |