#39 remove use of dict comprehensions to retain python 2.6 support
Merged 9 years ago by mikem. Opened 9 years ago by mikeb.

file modified
+1 -1
@@ -5855,7 +5855,7 @@ 

  

      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:

no initial comment

Reverts a change introduced in the list-tasks --mine patch set which broke support for python 2.6.

Pull-Request has been merged by mikem

9 years ago
Metadata