ruff: Fix FURB167 Use of regular expression alias.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-06-30 14:29:07 -04:00
committed by Tim Abbott
parent 6a73006723
commit 5af8dfda3e
7 changed files with 11 additions and 10 deletions

View File

@@ -147,7 +147,7 @@ NGINX_LOG_LINE_RE = re.compile(
(?P<hostname> \S+ ) \s+
(?P<duration> \S+ )
""",
re.X,
re.VERBOSE,
)
PYTHON_LOG_LINE_RE = re.compile(
@@ -178,7 +178,7 @@ PYTHON_LOG_LINE_RE = re.compile(
) \s+ via \s+ (?P<user_agent> .* )
\)
""",
re.X,
re.VERBOSE,
)