summaryrefslogtreecommitdiffstats
path: root/devel/management/commands/reporead_inotify.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 /devel/management/commands/reporead_inotify.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 'devel/management/commands/reporead_inotify.py')
-rw-r--r--devel/management/commands/reporead_inotify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/management/commands/reporead_inotify.py b/devel/management/commands/reporead_inotify.py
index c74762eb..16b3869c 100644
--- a/devel/management/commands/reporead_inotify.py
+++ b/devel/management/commands/reporead_inotify.py
@@ -69,7 +69,7 @@ class Command(BaseCommand):
finally builds and returns a notifier object.'''
arches = Arch.objects.filter(agnostic=False)
repos = Repo.objects.all()
- arch_path_map = dict((arch, None) for arch in arches)
+ arch_path_map = {arch: None for arch in arches}
all_paths = set()
total_paths = 0
for arch in arches: