mirror of
https://github.com/django/django.git
synced 2025-12-09 02:55:57 +00:00
Fixed #21287 -- Fixed E123 pep8 warnings
This commit is contained in:
parent
65750b8352
commit
a800036981
71 changed files with 152 additions and 152 deletions
|
|
@ -526,9 +526,9 @@ def validate_host(host, allowed_hosts):
|
|||
pattern == '*' or
|
||||
pattern.startswith('.') and (
|
||||
host.endswith(pattern) or host == pattern[1:]
|
||||
) or
|
||||
) or
|
||||
pattern == host
|
||||
)
|
||||
)
|
||||
if match:
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue