From 4c2160ca1c128e6d7e3840c8ade153623ce93752 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Mon, 2 Mar 2020 20:38:29 -0500 Subject: [PATCH] Reformat with the correct version of black for this branch --- tornado/httputil.py | 2 +- tornado/tcpclient.py | 2 +- tornado/web.py | 16 ++++++++++++---- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/tornado/httputil.py b/tornado/httputil.py index 835327d0a1..aee3bb0bae 100644 --- a/tornado/httputil.py +++ b/tornado/httputil.py @@ -690,7 +690,7 @@ class HTTPFile(ObjectDict): def _parse_request_range( - range_header: str + range_header: str, ) -> Optional[Tuple[Optional[int], Optional[int]]]: """Parses a Range header. diff --git a/tornado/tcpclient.py b/tornado/tcpclient.py index 9fe69716fc..01d9512db0 100644 --- a/tornado/tcpclient.py +++ b/tornado/tcpclient.py @@ -79,7 +79,7 @@ def __init__( @staticmethod def split( - addrinfo: List[Tuple] + addrinfo: List[Tuple], ) -> Tuple[ List[Tuple[socket.AddressFamily, Tuple]], List[Tuple[socket.AddressFamily, Tuple]], diff --git a/tornado/web.py b/tornado/web.py index 6e6e9551a9..bb2684eb81 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -1071,7 +1071,11 @@ def flush(self, include_footers: bool = False) -> "Future[None]": self._headers_written = True for transform in self._transforms: assert chunk is not None - self._status_code, self._headers, chunk = transform.transform_first_chunk( + ( + self._status_code, + self._headers, + chunk, + ) = transform.transform_first_chunk( self._status_code, self._headers, chunk, include_footers ) # Ignore the chunk and only write the headers for HEAD requests @@ -3527,9 +3531,13 @@ def _decode_signed_value_v2( clock: Callable[[], float], ) -> Optional[bytes]: try: - key_version, timestamp_bytes, name_field, value_field, passed_sig = _decode_fields_v2( - value - ) + ( + key_version, + timestamp_bytes, + name_field, + value_field, + passed_sig, + ) = _decode_fields_v2(value) except ValueError: return None signed_string = value[: -len(passed_sig)]