summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-16 23:37:31 +0100
committerDan McGee <dan@archlinux.org>2012-11-16 23:37:53 +0100
commit9e9157d0a8cbf9ea076231e438fb30f58bff8e29 (patch)
tree5c9a9711003d6eb4e5396c1c730a912bbbfc2204 /main
parent6dd4d54bb0adbbb0f8c2b1beaa92b7a58971cf88 (diff)
downloadarchweb-9e9157d0a8cbf9ea076231e438fb30f58bff8e29.tar.gz
archweb-9e9157d0a8cbf9ea076231e438fb30f58bff8e29.tar.xz
Use python set comprehension syntax supported in 2.7
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 5700cdf..cc81637 100644
--- a/main/models.py
+++ b/main/models.py
@@ -197,7 +197,7 @@ class Package(models.Model):
"""
from packages.models import Depend
provides = self.provides.all()
- provide_names = set(provide.name for provide in provides)
+ provide_names = {provide.name for provide in provides}
provide_names.add(self.pkgname)
requiredby = Depend.objects.select_related('pkg',
'pkg__arch', 'pkg__repo').filter(