Status: Fix sort on Python3 (dict_items, not list). Closes GH-1199.

This commit is contained in:
Valentin Lorentz 2015-12-20 10:09:30 +01:00
parent 7dabd79e5c
commit 2364cf176d

View File

@ -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: