Skip to content

Commit

Permalink
Reformat with the correct version of black for this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Mar 3, 2020
1 parent 3f4991a commit 4c2160c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tornado/httputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tornado/tcpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]],
Expand Down
16 changes: 12 additions & 4 deletions tornado/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit 4c2160c

Please sign in to comment.