aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/app.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-18 18:12:11 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-18 18:15:22 +0200
commit7a3623a14ee2ffa021c1a2a8f337826e055b328d (patch)
tree7abdfdba135ea1f6022a8a72b1c52371f76fbea2 /libpathod/app.py
parent90aeda47aead50110ee4a0a29b01edd170539818 (diff)
downloadmitmproxy-7a3623a14ee2ffa021c1a2a8f337826e055b328d.tar.gz
mitmproxy-7a3623a14ee2ffa021c1a2a8f337826e055b328d.tar.bz2
mitmproxy-7a3623a14ee2ffa021c1a2a8f337826e055b328d.zip
fix pep8 whitespace
Diffstat (limited to 'libpathod/app.py')
-rw-r--r--libpathod/app.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/libpathod/app.py b/libpathod/app.py
index cd7a8bd6..4a8d2b63 100644
--- a/libpathod/app.py
+++ b/libpathod/app.py
@@ -12,6 +12,7 @@ EXAMPLE_WEBSOCKET_KEY = "examplekey"
# pylint: disable=unused-variable
+
def make_app(noapi, debug):
app = Flask(__name__)
app.debug = debug
@@ -20,13 +21,13 @@ def make_app(noapi, debug):
@app.route('/api/info')
def api_info():
return jsonify(
- version = version.IVERSION
+ version=version.IVERSION
)
@app.route('/api/log')
def api_log():
return jsonify(
- log = app.config["pathod"].get_log()
+ log=app.config["pathod"].get_log()
)
@app.route('/api/clear_log')
@@ -125,10 +126,10 @@ def make_app(noapi, debug):
spec = request.args["spec"]
args = dict(
- spec = spec,
- section = "main",
- syntaxerror = None,
- error = None,
+ spec=spec,
+ section="main",
+ syntaxerror=None,
+ error=None,
)
if not spec.strip():
args["error"] = "Can't parse an empty spec."