summaryrefslogtreecommitdiff
path: root/django/apps
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-06-01 16:08:59 -0700
committerTim Graham <timograham@gmail.com>2017-06-01 19:08:59 -0400
commit2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929 (patch)
tree65b8e60b858e4f073a04c2bbf976b8f43fe0cff6 /django/apps
parentedee5a8de6afb34a9247de2bb73ab66397a6e573 (diff)
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
Diffstat (limited to 'django/apps')
-rw-r--r--django/apps/registry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/apps/registry.py b/django/apps/registry.py
index aff58db1c4..f522550d60 100644
--- a/django/apps/registry.py
+++ b/django/apps/registry.py
@@ -300,7 +300,7 @@ class Apps:
This method is safe in the sense that it doesn't trigger any imports.
"""
available = set(available)
- installed = set(app_config.name for app_config in self.get_app_configs())
+ installed = {app_config.name for app_config in self.get_app_configs()}
if not available.issubset(installed):
raise ValueError(
"Available apps isn't a subset of installed apps, extra apps: %s"