mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-20 15:18:20 +00:00
Replaced a dictionary comprehension with dict(list comprehension) to keep 2.6 compatibility
This commit is contained in:
parent
a73fb338f1
commit
8de9843e7e
@ -153,7 +153,7 @@ class TorrentDetail(BaseMode, component.Component):
|
|||||||
log.debug("got state")
|
log.debug("got state")
|
||||||
|
|
||||||
if state.get("files"):
|
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
|
need_prio_update = False
|
||||||
if not self.file_list:
|
if not self.file_list:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user