Make namedtuple local
This commit is contained in:
parent
ced387e719
commit
de4cd80b83
|
@ -67,8 +67,6 @@ plugin_manager = None # Plugins Manager
|
||||||
|
|
||||||
logger = cast(LoggerT, None)
|
logger = cast(LoggerT, None)
|
||||||
|
|
||||||
RecentGroupchat = namedtuple('RecentGroupchat', ['room', 'server', 'nickname'])
|
|
||||||
|
|
||||||
css_config = None
|
css_config = None
|
||||||
|
|
||||||
os_info = None # used to cache os information
|
os_info = None # used to cache os information
|
||||||
|
@ -575,6 +573,9 @@ def get_recent_groupchats(account):
|
||||||
recent_groupchats = config.get_per(
|
recent_groupchats = config.get_per(
|
||||||
'accounts', account, 'recent_groupchats').split()
|
'accounts', account, 'recent_groupchats').split()
|
||||||
|
|
||||||
|
RecentGroupchat = namedtuple('RecentGroupchat',
|
||||||
|
['room', 'server', 'nickname'])
|
||||||
|
|
||||||
recent_list = []
|
recent_list = []
|
||||||
for groupchat in recent_groupchats:
|
for groupchat in recent_groupchats:
|
||||||
jid = nbxmpp.JID(groupchat)
|
jid = nbxmpp.JID(groupchat)
|
||||||
|
|
Loading…
Reference in New Issue