Replaced a dictionary comprehension with dict(list comprehension) to keep 2.6 compatibility

This commit is contained in:
Asmageddon 2012-07-20 17:25:54 +02:00
parent a73fb338f1
commit 8de9843e7e
1 changed files with 1 additions and 1 deletions

View File

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