aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/command.py
diff options
context:
space:
mode:
authorHenrique <typoon@gmail.com>2019-11-12 18:59:25 -0500
committerHenrique <typoon@gmail.com>2019-11-12 18:59:25 -0500
commitb321e07279f8e1be4b76beb9dff608bb09ce485e (patch)
treefc6c5863acbbabab1789f2724eb6d7a2d716cd03 /mitmproxy/command.py
parentc7ffc228194574d1cff2c2fbb05fc3419c4805f4 (diff)
downloadmitmproxy-b321e07279f8e1be4b76beb9dff608bb09ce485e.tar.gz
mitmproxy-b321e07279f8e1be4b76beb9dff608bb09ce485e.tar.bz2
mitmproxy-b321e07279f8e1be4b76beb9dff608bb09ce485e.zip
Renamed the `maybequote` function to something better
Diffstat (limited to 'mitmproxy/command.py')
-rw-r--r--mitmproxy/command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/command.py b/mitmproxy/command.py
index b287c740..cf345c22 100644
--- a/mitmproxy/command.py
+++ b/mitmproxy/command.py
@@ -13,7 +13,7 @@ import sys
from mitmproxy import exceptions
import mitmproxy.types
-def maybequote(value):
+def escape_and_quote(value):
"""
This function takes the output from the lexer and puts it between quotes
in the following cases:
@@ -245,7 +245,7 @@ class CommandManager(mitmproxy.types._CommandBase):
# ctx.log.info('[gilga] before parse.append. value = %s' % parts[i])
parse.append(
ParseResult(
- value=maybequote(parts[i]),
+ value=escape_and_quote(parts[i]),
type=typ,
valid=valid,
)