~mounir-bsaibes/launchpad-work-items-tracker/move-power-to-trunk

« back to all changes in this revision

Viewing changes to 11.12.cfg

  • Committer: Danilo Segan
  • Date: 2011-12-13 10:16:09 UTC
  • Revision ID: danilo@canonical.com-20111213101609-26ryq20qufot50f1
Do not use inline dict generation for py2.6 compatibility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
import urllib, simplejson, os.path
132
132
data = simplejson.loads(urllib.urlopen(
133
133
        'https://api.launchpad.net/1.0/linaro-infrastructure/projects').read())
134
 
infra_projects = {
135
 
    product['name']:os.path.basename(product['development_focus_link'])
136
 
    for product in data['entries']}
 
134
infra_projects = {}
 
135
for product in data['entries']:
 
136
    infra_projects[product['name']] = (
 
137
        os.path.basename(product['development_focus_link']))
137
138
extra_projects.update(infra_projects)
138
139
 
139
140
# Ubuntu release to track