summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-11-18 16:42:15 -0800
committerCarlton Gibson <carlton@noumenal.es>2020-03-19 11:06:33 +0100
commit13993e0f38d5f272236887ef22b491eb1b20dce9 (patch)
tree9de0c0f9f7a744054eb7bd9eb2dea893febbe16b
parent6b61b8b90410815d096b26f550d1f3ddd9e57529 (diff)
Removed unused default value None to matches_patterns().
An iterable is always passed.
-rw-r--r--django/contrib/staticfiles/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/staticfiles/utils.py b/django/contrib/staticfiles/utils.py
index 221ce3b622..5c0a85a451 100644
--- a/django/contrib/staticfiles/utils.py
+++ b/django/contrib/staticfiles/utils.py
@@ -5,12 +5,12 @@ from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
-def matches_patterns(path, patterns=None):
+def matches_patterns(path, patterns):
"""
Return True or False depending on whether the ``path`` should be
ignored (if it matches any pattern in ``ignore_patterns``).
"""
- return any(fnmatch.fnmatchcase(path, pattern) for pattern in (patterns or []))
+ return any(fnmatch.fnmatchcase(path, pattern) for pattern in patterns)
def get_files(storage, ignore_patterns=None, location=''):