aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
authorShadab Zafar <dufferzafar0@gmail.com>2016-05-11 02:07:57 +0530
committerShadab Zafar <dufferzafar0@gmail.com>2016-05-26 23:07:37 +0530
commit5c62fabc84d0e2e7cbb5fcde494bbfa11dd593b2 (patch)
tree302f23ae7dbcdf233025a274430eac72324ea9b4 /pathod
parent22e4bc1938b74b0d0bfda7cab41b54070bcd7fb9 (diff)
downloadmitmproxy-5c62fabc84d0e2e7cbb5fcde494bbfa11dd593b2.tar.gz
mitmproxy-5c62fabc84d0e2e7cbb5fcde494bbfa11dd593b2.tar.bz2
mitmproxy-5c62fabc84d0e2e7cbb5fcde494bbfa11dd593b2.zip
Use BytesIO in pathod app
Diffstat (limited to 'pathod')
-rw-r--r--pathod/app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pathod/app.py b/pathod/app.py
index aa00ed69..7e9860b9 100644
--- a/pathod/app.py
+++ b/pathod/app.py
@@ -1,6 +1,6 @@
import logging
import pprint
-from six.moves import cStringIO as StringIO
+import io
import copy
from flask import Flask, jsonify, render_template, request, abort, make_response
from . import version, language, utils
@@ -145,7 +145,7 @@ def make_app(noapi, debug):
args["marked"] = v.marked()
return render(template, False, **args)
- s = StringIO()
+ s = io.BytesIO()
settings = copy.copy(app.config["pathod"].settings)
settings.request_host = EXAMPLE_HOST