diff options
author | Maximilian Hils <git@maximilianhils.com> | 2018-01-18 00:50:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-18 00:50:27 +0100 |
commit | 8dfb8a9a7471e00b0f723de66d3b63bd089e9802 (patch) | |
tree | fe6f9b2ac3b8cbc62ec1215c0e28b7075e41a5bb | |
parent | 6e7030fcfb31c5ba4856dcc02ba06a50f2c3ab6b (diff) | |
parent | 44d97848e502fe999acdfb680c72b72ca6033b17 (diff) | |
download | mitmproxy-8dfb8a9a7471e00b0f723de66d3b63bd089e9802.tar.gz mitmproxy-8dfb8a9a7471e00b0f723de66d3b63bd089e9802.tar.bz2 mitmproxy-8dfb8a9a7471e00b0f723de66d3b63bd089e9802.zip |
Merge pull request #2736 from mitmproxy/posix-commands
Parse Commands in POSIX mode
-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 = '' |