summaryrefslogtreecommitdiffstats
path: root/visualize/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-16 16:20:11 -0600
committerDan McGee <dan@archlinux.org>2012-11-16 16:37:52 -0600
commit6dd4d54bb0adbbb0f8c2b1beaa92b7a58971cf88 (patch)
treece20ff9bf1118c8d383eed352bcdcbf064cb5269 /visualize/views.py
parentb3979dd2315ce1aef779abdb646562d7bba7a44f (diff)
downloadarchweb-6dd4d54bb0adbbb0f8c2b1beaa92b7a58971cf88.tar.gz
archweb-6dd4d54bb0adbbb0f8c2b1beaa92b7a58971cf88.zip
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/views.py')
-rw-r--r--visualize/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/visualize/views.py b/visualize/views.py
index 8d878937..48e8f86b 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']