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:
parent
05575f7669
commit
7aef1232d8
1 changed files with 1 additions and 1 deletions
2
cli/koji
2
cli/koji
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue