mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-02 00:05:27 +00:00
Merge pull request #2736 from mitmproxy/posix-commands
Parse Commands in POSIX mode
This commit is contained in:
commit
8dfb8a9a74
@ -24,7 +24,7 @@ def verify_arg_signature(f: typing.Callable, args: list, kwargs: dict) -> None:
|
||||
|
||||
def lexer(s):
|
||||
# mypy mis-identifies shlex.shlex as abstract
|
||||
lex = shlex.shlex(s) # type: ignore
|
||||
lex = shlex.shlex(s, posix=True) # type: ignore
|
||||
lex.wordchars += "."
|
||||
lex.whitespace_split = True
|
||||
lex.commenters = ''
|
||||
|
Loading…
Reference in New Issue
Block a user