aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod
diff options
context:
space:
mode:
authorShadab Zafar <dufferzafar0@gmail.com>2016-06-08 21:34:56 +0530
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-06-15 09:49:38 +0200
commitfa40531a80bbe5e0011383fe81f7e4785b2b0a7d (patch)
treedd0ad1fcdde3895ccc2bafa8666fc84ed0a82bd5 /test/pathod
parentd9b940c21e7729da1b6a63d8e82cd3ad4a82f775 (diff)
downloadmitmproxy-fa40531a80bbe5e0011383fe81f7e4785b2b0a7d.tar.gz
mitmproxy-fa40531a80bbe5e0011383fe81f7e4785b2b0a7d.tar.bz2
mitmproxy-fa40531a80bbe5e0011383fe81f7e4785b2b0a7d.zip
Py3: pathod
Diffstat (limited to 'test/pathod')
-rw-r--r--test/pathod/tutils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pathod/tutils.py b/test/pathod/tutils.py
index bf5e3165..ccdd725b 100644
--- a/test/pathod/tutils.py
+++ b/test/pathod/tutils.py
@@ -3,8 +3,8 @@ import re
import shutil
import requests
from six.moves import cStringIO as StringIO
+from six.moves import urllib
from six import BytesIO
-import urllib
from netlib import tcp
from netlib import utils
@@ -87,7 +87,7 @@ class DaemonTests(object):
)
with c.connect():
if params:
- path = path + "?" + urllib.urlencode(params)
+ path = path + "?" + urllib.parse.urlencode(params)
resp = c.request("get:%s" % path)
return resp
@@ -100,7 +100,7 @@ class DaemonTests(object):
)
with c.connect():
resp = c.request(
- "get:/p/%s" % urllib.quote(spec).encode("string_escape")
+ "get:/p/%s" % urllib.parse.quote(spec).encode("string_escape")
)
return resp