diff options
author | Matías Lang <yo@matiaslang.me> | 2019-01-14 02:02:07 -0300 |
---|---|---|
committer | Matías Lang <yo@matiaslang.me> | 2019-01-14 02:02:07 -0300 |
commit | d852f292c9a45de7f45cc8537f2aef217259017e (patch) | |
tree | 010a40bbb87a8601401c762e0ec3392b955ad349 /mitmproxy/addons | |
parent | e6da62a50adef20dfd05d89d9571dcaf433f94a3 (diff) | |
download | mitmproxy-d852f292c9a45de7f45cc8537f2aef217259017e.tar.gz mitmproxy-d852f292c9a45de7f45cc8537f2aef217259017e.tar.bz2 mitmproxy-d852f292c9a45de7f45cc8537f2aef217259017e.zip |
Fix flake8 warning in curl_command
There was an unused variable (I redefined its value below). It didn't
affect the behavior of the function
Diffstat (limited to 'mitmproxy/addons')
-rw-r--r-- | mitmproxy/addons/export.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mitmproxy/addons/export.py b/mitmproxy/addons/export.py index 04c0349a..a7152ae4 100644 --- a/mitmproxy/addons/export.py +++ b/mitmproxy/addons/export.py @@ -34,10 +34,7 @@ def curl_command(f: flow.Flow) -> str: # shlex.quote doesn't support a bytes object # see https://github.com/python/cpython/pull/10871 raise exceptions.CommandError("Request content must be valid unicode") - args += [ - "--data-binary", - strutils.always_str(request.content) - ] + args += ["--data-binary", content] return ' '.join(shlex.quote(arg) for arg in args) |