diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-12-31 17:31:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-31 17:31:21 +0100 |
commit | 44d97848e502fe999acdfb680c72b72ca6033b17 (patch) | |
tree | abdc315de12f172416cc17129bee2cb468032f28 | |
parent | d9d4d15ee0c27dda0de340716b5275d4d444d0b8 (diff) | |
download | mitmproxy-44d97848e502fe999acdfb680c72b72ca6033b17.tar.gz mitmproxy-44d97848e502fe999acdfb680c72b72ca6033b17.tar.bz2 mitmproxy-44d97848e502fe999acdfb680c72b72ca6033b17.zip |
parse commands in posix mode
If posix=False, quotes are not stripped from parsed tokens.
-rw-r--r-- | mitmproxy/command.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/command.py b/mitmproxy/command.py index 7bb2bf8e..48968c90 100644 --- a/mitmproxy/command.py +++ b/mitmproxy/command.py @@ -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 = '' |