diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-20 11:27:05 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-20 11:27:05 +1300 |
commit | 01a449b5cb1106a867a6b73cd4877e9b2ec68171 (patch) | |
tree | 5a213fb4b8199d525079a55b64d6d232380be341 /netlib/http | |
parent | 301d52d9d05f2c5f074fe68c73acc1c32e518020 (diff) | |
download | mitmproxy-01a449b5cb1106a867a6b73cd4877e9b2ec68171.tar.gz mitmproxy-01a449b5cb1106a867a6b73cd4877e9b2ec68171.tar.bz2 mitmproxy-01a449b5cb1106a867a6b73cd4877e9b2ec68171.zip |
netlib.exceptions.* -> mitmproxy.exceptions
Diffstat (limited to 'netlib/http')
-rw-r--r-- | netlib/http/http1/assemble.py | 2 | ||||
-rw-r--r-- | netlib/http/http1/read.py | 2 | ||||
-rw-r--r-- | netlib/http/http2/framereader.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/netlib/http/http1/assemble.py b/netlib/http/http1/assemble.py index 3d65da34..e0a91ad8 100644 --- a/netlib/http/http1/assemble.py +++ b/netlib/http/http1/assemble.py @@ -1,5 +1,5 @@ import netlib.http.url -from netlib import exceptions +from mitmproxy import exceptions def assemble_request(request): diff --git a/netlib/http/http1/read.py b/netlib/http/http1/read.py index 89b73c5a..e6b22863 100644 --- a/netlib/http/http1/read.py +++ b/netlib/http/http1/read.py @@ -7,7 +7,7 @@ from netlib.http import response from netlib.http import headers from netlib.http import url from netlib import check -from netlib import exceptions +from mitmproxy import exceptions def get_header_tokens(headers, key): diff --git a/netlib/http/http2/framereader.py b/netlib/http/http2/framereader.py index 8b7cfffb..6a164919 100644 --- a/netlib/http/http2/framereader.py +++ b/netlib/http/http2/framereader.py @@ -1,7 +1,7 @@ import codecs import hyperframe -from ...exceptions import HttpException +from mitmproxy import exceptions def read_raw_frame(rfile): @@ -9,7 +9,7 @@ def read_raw_frame(rfile): length = int(codecs.encode(header[:3], 'hex_codec'), 16) if length == 4740180: - raise HttpException("Length field looks more like HTTP/1.1:\n{}".format(rfile.read(-1))) + raise exceptions.HttpException("Length field looks more like HTTP/1.1:\n{}".format(rfile.read(-1))) body = rfile.safe_read(length) return [header, body] |