diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 16:38:31 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 16:45:45 +1300 |
commit | ce98a9219e060b729d4b0d2dc28bf4510649f0fd (patch) | |
tree | c5be5cc8d53de169aadd7c30c4ad41b55b79c783 /test/netlib/http/test_url.py | |
parent | 839813a84c3d63ca44d2721f6cb39b79c489195a (diff) | |
download | mitmproxy-ce98a9219e060b729d4b0d2dc28bf4510649f0fd.tar.gz mitmproxy-ce98a9219e060b729d4b0d2dc28bf4510649f0fd.tar.bz2 mitmproxy-ce98a9219e060b729d4b0d2dc28bf4510649f0fd.zip |
test & examples: zap six
Diffstat (limited to 'test/netlib/http/test_url.py')
-rw-r--r-- | test/netlib/http/test_url.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/netlib/http/test_url.py b/test/netlib/http/test_url.py index 768e5130..631ed8a9 100644 --- a/test/netlib/http/test_url.py +++ b/test/netlib/http/test_url.py @@ -1,4 +1,3 @@ -import six from netlib import tutils from netlib.http import url @@ -58,10 +57,7 @@ def test_unparse(): assert url.unparse("https", "foo.com", 443, "") == "https://foo.com" -if six.PY2: - surrogates = bytes(bytearray(range(256))) -else: - surrogates = bytes(range(256)).decode("utf8", "surrogateescape") +surrogates = bytes(range(256)).decode("utf8", "surrogateescape") surrogates_quoted = ( '%00%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F' |