diff options
author | Dan McGee <dan@archlinux.org> | 2012-11-16 16:37:31 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-11-16 16:37:53 -0600 |
commit | 9e9157d0a8cbf9ea076231e438fb30f58bff8e29 (patch) | |
tree | 5c9a9711003d6eb4e5396c1c730a912bbbfc2204 /main | |
parent | 6dd4d54bb0adbbb0f8c2b1beaa92b7a58971cf88 (diff) |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py index 5700cdf1..cc81637c 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( |