summaryrefslogtreecommitdiff
path: root/django/core/checks/security/base.py
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2025-07-22 20:41:41 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 20:17:55 -0300
commit69a93a88edb56ba47f624dac7a21aacc47ea474f (patch)
treef57507a4435d032493cae40e06ecb254790b67b2 /django/core/checks/security/base.py
parent55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff)
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'django/core/checks/security/base.py')
-rw-r--r--django/core/checks/security/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/checks/security/base.py b/django/core/checks/security/base.py
index 9506052196..7d9631df1e 100644
--- a/django/core/checks/security/base.py
+++ b/django/core/checks/security/base.py
@@ -266,7 +266,8 @@ def check_referrer_policy(app_configs, **kwargs):
if _security_middleware():
if settings.SECURE_REFERRER_POLICY is None:
return [W022]
- # Support a comma-separated string or iterable of values to allow fallback.
+ # Support a comma-separated string or iterable of values to allow
+ # fallback.
if isinstance(settings.SECURE_REFERRER_POLICY, str):
values = {v.strip() for v in settings.SECURE_REFERRER_POLICY.split(",")}
else: