From 6b61b8b90410815d096b26f550d1f3ddd9e57529 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 18 Nov 2019 04:29:45 -0800 Subject: [PATCH] Used modern idiom in collectstatic command. Replaced set() with set comprehension. --- django/contrib/staticfiles/management/commands/collectstatic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/staticfiles/management/commands/collectstatic.py b/django/contrib/staticfiles/management/commands/collectstatic.py index 238a30aa98..b2995acc7e 100644 --- a/django/contrib/staticfiles/management/commands/collectstatic.py +++ b/django/contrib/staticfiles/management/commands/collectstatic.py @@ -79,7 +79,7 @@ class Command(BaseCommand): ignore_patterns = options['ignore_patterns'] if options['use_default_ignore_patterns']: ignore_patterns += apps.get_app_config('staticfiles').ignore_patterns - self.ignore_patterns = list(set(os.path.normpath(p) for p in ignore_patterns)) + self.ignore_patterns = list({os.path.normpath(p) for p in ignore_patterns}) self.post_process = options['post_process'] def collect(self):