remove use of dict comprehensions to retain python 2.6 support

Dict comprehensions (PEP-274) were added to python 2.7+. The patch that added the --mine
option to list-tasks made use of a dict comprehension, which broke python 2.6 support.
This patch restores the older dict() + list comprehension approach, which restores
support for python 2.6.
This commit is contained in:
Mike Bonnet 2016-03-18 16:41:07 -04:00
parent 05575f7669
commit 7aef1232d8

View file

@ -5855,7 +5855,7 @@ def _list_tasks(options, session):
qopts = {'order' : 'priority,create_time'}
tasklist = session.listTasks(callopts, qopts)
tasks = {x['id']:x for x in tasklist}
tasks = dict([(x['id'], x) for x in tasklist])
#thread the tasks
for t in tasklist: