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 = {}
for Irc in world.ircs:
networks.setdefault(Irc.network, []).append(Irc.nick)
networks = networks.items()
networks.sort()
networks = sorted(networks.items())
networks = [format(_('%s as %L'), net, nicks) for (net,nicks) in networks]
L = [format(_('I am connected to %L.'), networks)]
if world.profiling: