Skip to content

Commit f4338b5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 590bd50 commit f4338b5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

aiohttp/web_request.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ class FileField:
9292
# qdtext excludes obs-text (because obsoleted, and encoding not specified)
9393

9494
# This does not have a ReDOS/performance concern as long as it used with re.match().
95-
_FORWARDED_PAIR: Final[str] = rf'[ \t]*({_TOKEN})=({_TOKEN}|".*")(:\d{{1,4}})?[ \t]*(?:\Z|;)'
95+
_FORWARDED_PAIR: Final[str] = (
96+
rf'[ \t]*({_TOKEN})=({_TOKEN}|".*")(:\d{{1,4}})?[ \t]*(?:\Z|;)'
97+
)
9698
_FORWARDED_PAIR_RE: Final[Pattern[str]] = re.compile(_FORWARDED_PAIR)
9799

98100
############################################################
@@ -324,7 +326,7 @@ def forwarded(self) -> tuple[Mapping[str, str], ...]:
324326
value += port
325327
elem[name.lower()] = value
326328
pos += len(match.group(0))
327-
elif not field_value[pos:field_value.find(";", pos)].strip(" \t"):
329+
elif not field_value[pos : field_value.find(";", pos)].strip(" \t"):
328330
# Empty value
329331
pos = field_value.find(";", pos) + 1
330332
else:

0 commit comments

Comments
 (0)