mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Status: Fix sort on Python3 (dict_items, not list). Closes GH-1199.
This commit is contained in:
parent
7dabd79e5c
commit
2364cf176d
@ -78,8 +78,7 @@ class Status(callbacks.Plugin):
|
|||||||
networks = {}
|
networks = {}
|
||||||
for Irc in world.ircs:
|
for Irc in world.ircs:
|
||||||
networks.setdefault(Irc.network, []).append(Irc.nick)
|
networks.setdefault(Irc.network, []).append(Irc.nick)
|
||||||
networks = networks.items()
|
networks = sorted(networks.items())
|
||||||
networks.sort()
|
|
||||||
networks = [format(_('%s as %L'), net, nicks) for (net,nicks) in networks]
|
networks = [format(_('%s as %L'), net, nicks) for (net,nicks) in networks]
|
||||||
L = [format(_('I am connected to %L.'), networks)]
|
L = [format(_('I am connected to %L.'), networks)]
|
||||||
if world.profiling:
|
if world.profiling:
|
||||||
|
Loading…
Reference in New Issue
Block a user