diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-10-17 18:21:23 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-17 18:21:23 +1300 |
commit | 00071238d2e79ff91132b7e5a3bcc8019d9191ec (patch) | |
tree | 507c346e8f8c605d428140274678fced2e6bbc16 /pathod/protocols/http2.py | |
parent | 666c59cbfbcbd28062c201c3cb5d6cb928e90aee (diff) | |
parent | c774a9fec93feedc37a450400a03b83f5f4cb4b9 (diff) | |
download | mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.tar.gz mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.tar.bz2 mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.zip |
Merge pull request #1617 from cortesi/object
python3
Diffstat (limited to 'pathod/protocols/http2.py')
-rw-r--r-- | pathod/protocols/http2.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pathod/protocols/http2.py b/pathod/protocols/http2.py index 78fe6111..69f49c63 100644 --- a/pathod/protocols/http2.py +++ b/pathod/protocols/http2.py @@ -1,4 +1,3 @@ -from __future__ import (absolute_import, print_function, division) import itertools import time @@ -15,14 +14,14 @@ import netlib.http.request from .. import language -class TCPHandler(object): +class TCPHandler: def __init__(self, rfile, wfile=None): self.rfile = rfile self.wfile = wfile -class HTTP2StateProtocol(object): +class HTTP2StateProtocol: ERROR_CODES = utils.BiDi( NO_ERROR=0x0, @@ -403,7 +402,7 @@ class HTTP2StateProtocol(object): return stream_id, headers, body -class HTTP2Protocol(object): +class HTTP2Protocol: def __init__(self, pathod_handler): self.pathod_handler = pathod_handler |