Skip to content

Commit 2b9987b

Browse files
Fix flake8 D301 Use r""" if any backslashes in a docstring
1 parent 659bc5a commit 2b9987b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cookie_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ def test_parse_set_cookie_headers_ctl_chars_from_octal(
11631163

11641164

11651165
def test_parse_set_cookie_headers_literal_ctl_chars() -> None:
1166-
"""Ensure literal control characters in a cookie value don't crash the parser.
1166+
r"""Ensure literal control characters in a cookie value don't crash the parser.
11671167
11681168
If the raw header itself contains a control character (e.g. BEL \\x07),
11691169
both the decoded value and coded_value are unsalvageable. The parser
@@ -1650,7 +1650,7 @@ def test_parse_cookie_header_empty_key_in_fallback(
16501650

16511651

16521652
def test_parse_cookie_header_literal_ctl_chars() -> None:
1653-
"""Ensure literal control characters in a cookie value don't crash the parser.
1653+
r"""Ensure literal control characters in a cookie value don't crash the parser.
16541654
16551655
If the raw header itself contains a control character (e.g. BEL \\x07),
16561656
the cookie is unsalvageable. The parser should gracefully skip it.

0 commit comments

Comments
 (0)