diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-04 08:08:27 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
commit | 7119f40c9881666b6f9b5cf7df09ee1d21cc8344 (patch) | |
tree | fa50869f5614295f462d9bf77fec59365c621609 /django/http/request.py | |
parent | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff) | |
download | django-7119f40c9881666b6f9b5cf7df09ee1d21cc8344.tar.gz |
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'django/http/request.py')
-rw-r--r-- | django/http/request.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/django/http/request.py b/django/http/request.py index d975aadf25..0b64b1b2b9 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -256,7 +256,8 @@ class HttpRequest: header, secure_value = settings.SECURE_PROXY_SSL_HEADER except ValueError: raise ImproperlyConfigured( - "The SECURE_PROXY_SSL_HEADER setting must be a tuple containing two values." + "The SECURE_PROXY_SSL_HEADER setting must be a tuple containing " + "two values." ) header_value = self.META.get(header) if header_value is not None: @@ -300,7 +301,8 @@ class HttpRequest: def upload_handlers(self, upload_handlers): if hasattr(self, "_files"): raise AttributeError( - "You cannot set the upload handlers after the upload has been processed." + "You cannot set the upload handlers after the upload has been " + "processed." ) self._upload_handlers = upload_handlers @@ -308,7 +310,10 @@ class HttpRequest: """Return a tuple of (POST QueryDict, FILES MultiValueDict).""" self.upload_handlers = ImmutableList( self.upload_handlers, - warning="You cannot alter upload handlers after the upload has been processed.", + warning=( + "You cannot alter upload handlers after the upload has been " + "processed." + ), ) parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding) return parser.parse() |