aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/protocols
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-10-17 17:29:45 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-10-17 17:37:08 +1300
commita647b30365593a4a3056fcf6936f5441ab9eda88 (patch)
tree079b18790be5dfcc9a88f19e282b57088574d223 /pathod/protocols
parentfb22f2ff4f75783ba786935c93b75f372ede21f5 (diff)
downloadmitmproxy-a647b30365593a4a3056fcf6936f5441ab9eda88.tar.gz
mitmproxy-a647b30365593a4a3056fcf6936f5441ab9eda88.tar.bz2
mitmproxy-a647b30365593a4a3056fcf6936f5441ab9eda88.zip
python3: clean up class brackets
Diffstat (limited to 'pathod/protocols')
-rw-r--r--pathod/protocols/http.py2
-rw-r--r--pathod/protocols/http2.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/pathod/protocols/http.py b/pathod/protocols/http.py
index 5ac8516f..17930320 100644
--- a/pathod/protocols/http.py
+++ b/pathod/protocols/http.py
@@ -4,7 +4,7 @@ from netlib.http import http1
from .. import language
-class HTTPProtocol():
+class HTTPProtocol:
def __init__(self, pathod_handler):
self.pathod_handler = pathod_handler
diff --git a/pathod/protocols/http2.py b/pathod/protocols/http2.py
index 42f1a1a0..dcd17eba 100644
--- a/pathod/protocols/http2.py
+++ b/pathod/protocols/http2.py
@@ -15,14 +15,14 @@ import netlib.http.request
from .. import language
-class TCPHandler():
+class TCPHandler:
def __init__(self, rfile, wfile=None):
self.rfile = rfile
self.wfile = wfile
-class HTTP2StateProtocol():
+class HTTP2StateProtocol:
ERROR_CODES = utils.BiDi(
NO_ERROR=0x0,
@@ -403,7 +403,7 @@ class HTTP2StateProtocol():
return stream_id, headers, body
-class HTTP2Protocol():
+class HTTP2Protocol:
def __init__(self, pathod_handler):
self.pathod_handler = pathod_handler