diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-27 10:12:18 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-27 10:36:28 +0100 |
commit | 8c375383148f100f03aed52827ac513f145078c2 (patch) | |
tree | dbae3b5d4d603e5e226477f1938119e2acfcfc1f /libmproxy/dump.py | |
parent | c2bb29f669cd80509f4efe205551a9cf5fc29770 (diff) | |
download | mitmproxy-8c375383148f100f03aed52827ac513f145078c2.tar.gz mitmproxy-8c375383148f100f03aed52827ac513f145078c2.tar.bz2 mitmproxy-8c375383148f100f03aed52827ac513f145078c2.zip |
code formatting: fix whitespace issues
Diffstat (limited to 'libmproxy/dump.py')
-rw-r--r-- | libmproxy/dump.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py index 435037c8..65e212bf 100644 --- a/libmproxy/dump.py +++ b/libmproxy/dump.py @@ -9,6 +9,7 @@ import netlib.utils from . import flow, filt, contentviews from .exceptions import ContentViewException + class DumpError(Exception): pass @@ -55,6 +56,7 @@ class Options(object): class DumpMaster(flow.FlowMaster): + def __init__(self, server, options, outfile=None): flow.FlowMaster.__init__(self, server, flow.State()) self.outfile = outfile @@ -168,7 +170,7 @@ class DumpMaster(flow.FlowMaster): "{}: {}".format( click.style(k, fg="blue", bold=True), click.style(v, fg="blue")) - for k, v in message.headers.fields + for k, v in message.headers.fields ) self.echo(headers, indent=4) if self.o.flow_detail >= 3: @@ -234,7 +236,7 @@ class DumpMaster(flow.FlowMaster): client = click.style("[replay]", fg="yellow", bold=True) method = flow.request.method - method_color=dict( + method_color = dict( GET="green", DELETE="red" ).get(method.upper(), "magenta") |