From c7bce6ba9749727105c720b19a71df0bd183ece4 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 27 Dec 2020 03:17:36 +0100 Subject: [PATCH] =?UTF-8?q?Trim=20all=20messages=20by=2024=C2=A0bytes=20on?= =?UTF-8?q?=2064-bit=20systems?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message was redefining the slots of its parent class, which allocates them twice and we don’t want that. --- poezio/ui/types.py | 8 ++++---- 1 file 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,