From 2364cf176d2a98e3c72d3194e9b6b13cf0e6f761 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 20 Dec 2015 10:09:30 +0100 Subject: [PATCH] Status: Fix sort on Python3 (dict_items, not list). Closes GH-1199. --- plugins/Status/plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/Status/plugin.py b/plugins/Status/plugin.py index 5847a1dd8..5ab3f333d 100644 --- a/plugins/Status/plugin.py +++ b/plugins/Status/plugin.py @@ -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: