mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed W503 flake8 warnings.
This commit is contained in:
@@ -39,8 +39,8 @@ class LocaleMiddleware(object):
|
||||
path_valid = is_valid_path(language_path, urlconf)
|
||||
path_needs_slash = (
|
||||
not path_valid and (
|
||||
settings.APPEND_SLASH and not language_path.endswith('/')
|
||||
and is_valid_path('%s/' % language_path, urlconf)
|
||||
settings.APPEND_SLASH and not language_path.endswith('/') and
|
||||
is_valid_path('%s/' % language_path, urlconf)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user