Skip to content

Commit fb6c715

Browse files
authored
Reformat with black 22.1.0
1 parent bc9e571 commit fb6c715

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/trio-server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
import h11
8585

86-
MAX_RECV = 2 ** 16
86+
MAX_RECV = 2**16
8787
TIMEOUT = 10
8888

8989
################################################################

h11/_headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
#
6868
# Maybe a dict-of-lists would be better?
6969

70-
_content_length_re = re.compile(br"[0-9]+")
70+
_content_length_re = re.compile(rb"[0-9]+")
7171
_field_name_re = re.compile(field_name.encode("ascii"))
7272
_field_value_re = re.compile(field_value.encode("ascii"))
7373

h11/_readers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
# Remember that this has to run in O(n) time -- so e.g. the bytearray cast is
4242
# critical.
43-
obs_fold_re = re.compile(br"[ \t]+")
43+
obs_fold_re = re.compile(rb"[ \t]+")
4444

4545

4646
def _obsolete_line_fold(lines: Iterable[bytes]) -> Iterable[bytes]:

h11/tests/test_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def thunk() -> NoReturn:
5151

5252

5353
def test_validate() -> None:
54-
my_re = re.compile(br"(?P<group1>[0-9]+)\.(?P<group2>[0-9]+)")
54+
my_re = re.compile(rb"(?P<group1>[0-9]+)\.(?P<group2>[0-9]+)")
5555
with pytest.raises(LocalProtocolError):
5656
validate(my_re, b"0.")
5757

@@ -66,7 +66,7 @@ def test_validate() -> None:
6666

6767

6868
def test_validate_formatting() -> None:
69-
my_re = re.compile(br"foo")
69+
my_re = re.compile(rb"foo")
7070

7171
with pytest.raises(LocalProtocolError) as excinfo:
7272
validate(my_re, b"", "oops")

0 commit comments

Comments
 (0)