aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2018-01-18 00:50:27 +0100
committerGitHub <noreply@github.com>2018-01-18 00:50:27 +0100
commit8dfb8a9a7471e00b0f723de66d3b63bd089e9802 (patch)
treefe6f9b2ac3b8cbc62ec1215c0e28b7075e41a5bb
parent6e7030fcfb31c5ba4856dcc02ba06a50f2c3ab6b (diff)
parent44d97848e502fe999acdfb680c72b72ca6033b17 (diff)
downloadmitmproxy-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.py2
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 = ''