From 8de9843e7eee62c444332cd1d4344eb062c79e56 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Fri, 20 Jul 2012 17:25:54 +0200 Subject: [PATCH] Replaced a dictionary comprehension with dict(list comprehension) to keep 2.6 compatibility --- deluge/ui/console/modes/torrentdetail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/torrentdetail.py b/deluge/ui/console/modes/torrentdetail.py index 0bca6a85a..f115199d0 100644 --- a/deluge/ui/console/modes/torrentdetail.py +++ b/deluge/ui/console/modes/torrentdetail.py @@ -153,7 +153,7 @@ class TorrentDetail(BaseMode, component.Component): log.debug("got state") if state.get("files"): - self.full_names = {x['index']:x['path'] for x in state["files"]} + self.full_names = dict([ (x['index'], x['path']) for x in state["files"]]) need_prio_update = False if not self.file_list: