From de4cd80b8372500549e0cd755c1ccac703b5bed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Tue, 18 Dec 2018 22:52:29 +0100 Subject: [PATCH] Make namedtuple local --- gajim/common/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gajim/common/app.py b/gajim/common/app.py index a392d9fdd..9ae510221 100644 --- a/gajim/common/app.py +++ b/gajim/common/app.py @@ -67,8 +67,6 @@ plugin_manager = None # Plugins Manager logger = cast(LoggerT, None) -RecentGroupchat = namedtuple('RecentGroupchat', ['room', 'server', 'nickname']) - css_config = None os_info = None # used to cache os information @@ -575,6 +573,9 @@ def get_recent_groupchats(account): recent_groupchats = config.get_per( 'accounts', account, 'recent_groupchats').split() + RecentGroupchat = namedtuple('RecentGroupchat', + ['room', 'server', 'nickname']) + recent_list = [] for groupchat in recent_groupchats: jid = nbxmpp.JID(groupchat)