diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-16 23:20:11 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-16 23:37:52 +0100 |
commit | 6dd4d54bb0adbbb0f8c2b1beaa92b7a58971cf88 (patch) | |
tree | ce20ff9bf1118c8d383eed352bcdcbf064cb5269 /visualize | |
parent | b3979dd2315ce1aef779abdb646562d7bba7a44f (diff) | |
download | archweb-6dd4d54bb0adbbb0f8c2b1beaa92b7a58971cf88.tar.gz archweb-6dd4d54bb0adbbb0f8c2b1beaa92b7a58971cf88.tar.xz |
Use Python 2.7 dictionary comprehension syntax
Rather than the old idiom of dict((k, v) for <> in <>).
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'visualize')
-rw-r--r-- | visualize/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/visualize/views.py b/visualize/views.py index 8d87893..48e8f86 100644 --- a/visualize/views.py +++ b/visualize/views.py @@ -33,8 +33,8 @@ def arch_repo_data(): # now transform these results into two mappings: one ordered (repo, arch), # and one ordered (arch, repo). - arch_groups = dict((a, build_map(a, a, None)) for a in arches) - repo_groups = dict((r, build_map(r, None, r)) for r in repos) + arch_groups = {a: build_map(a, a, None) for a in arches} + repo_groups = {r: build_map(r, None, r) for r in repos} for row in qs: arch = row['arch__name'] repo = row['repo__name'] |