mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -8,7 +8,10 @@ pattern = re.compile(
|
||||
"""^ (?P<name> [^/ ]* [^0-9/(]* )
|
||||
(/ (?P<version> [^/ ]* ))?
|
||||
([ /] .*)?
|
||||
$""", re.X)
|
||||
$""",
|
||||
re.X,
|
||||
)
|
||||
|
||||
|
||||
def parse_user_agent(user_agent: str) -> Dict[str, str]:
|
||||
match = pattern.match(user_agent)
|
||||
|
||||
Reference in New Issue
Block a user