aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/pathod_cmdline.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-05-28 22:25:54 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-05-28 22:44:28 +0200
commite4045dc7f858e1e7d2368819e7ad251f4e1d7f90 (patch)
tree3738591128896da936030438515f51d253c93896 /pathod/pathod_cmdline.py
parente5038c9ab7a6718e7a3408a43549231929c7beb9 (diff)
downloadmitmproxy-e4045dc7f858e1e7d2368819e7ad251f4e1d7f90.tar.gz
mitmproxy-e4045dc7f858e1e7d2368819e7ad251f4e1d7f90.tar.bz2
mitmproxy-e4045dc7f858e1e7d2368819e7ad251f4e1d7f90.zip
pathod: fix most flake8 offenses
Diffstat (limited to 'pathod/pathod_cmdline.py')
-rw-r--r--pathod/pathod_cmdline.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/pathod/pathod_cmdline.py b/pathod/pathod_cmdline.py
index 1f972a49..a7cd2495 100644
--- a/pathod/pathod_cmdline.py
+++ b/pathod/pathod_cmdline.py
@@ -49,12 +49,12 @@ def args_pathod(argv, stdout_=sys.stdout, stderr_=sys.stderr):
help="""
URL path specifying prefix for URL crafting
commands. (%s)
- """%pathod.DEFAULT_CRAFT_ANCHOR
+ """ % pathod.DEFAULT_CRAFT_ANCHOR
)
parser.add_argument(
"--confdir",
- action="store", type = str, dest="confdir", default='~/.mitmproxy',
- help = "Configuration directory. (~/.mitmproxy)"
+ action="store", type=str, dest="confdir", default='~/.mitmproxy',
+ help="Configuration directory. (~/.mitmproxy)"
)
parser.add_argument(
"-d", dest='staticdir', default=None, type=str,
@@ -117,8 +117,8 @@ def args_pathod(argv, stdout_=sys.stdout, stderr_=sys.stderr):
)
group.add_argument(
"--cert", dest='ssl_certs', default=[], type=str,
- metavar = "SPEC", action="append",
- help = """
+ metavar="SPEC", action="append",
+ help="""
Add an SSL certificate. SPEC is of the form "[domain=]path". The domain
may include a wildcard, and is equal to "*" if not specified. The file
at path is a certificate in PEM format. If a private key is included in
@@ -177,7 +177,6 @@ def args_pathod(argv, stdout_=sys.stdout, stderr_=sys.stderr):
help="Output all received & sent HTTP/2 frames"
)
-
args = parser.parse_args(argv[1:])
args.ssl_version, args.ssl_options = tcp.sslversion_choices[args.ssl_version]