aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http2/protocol.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-08 12:21:08 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-08 12:29:39 +0200
commit359ef469054b6a80ff8a5a3148a52e864a76fe9b (patch)
treee170afcfbed05f0967f6a5aee103d64a953544c0 /netlib/http2/protocol.py
parent9c48bfb2a53bf3ac3c29408511e3126ada16afd8 (diff)
downloadmitmproxy-359ef469054b6a80ff8a5a3148a52e864a76fe9b.tar.gz
mitmproxy-359ef469054b6a80ff8a5a3148a52e864a76fe9b.tar.bz2
mitmproxy-359ef469054b6a80ff8a5a3148a52e864a76fe9b.zip
fix coding style
Diffstat (limited to 'netlib/http2/protocol.py')
-rw-r--r--netlib/http2/protocol.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/netlib/http2/protocol.py b/netlib/http2/protocol.py
index 459c2293..feac220c 100644
--- a/netlib/http2/protocol.py
+++ b/netlib/http2/protocol.py
@@ -61,7 +61,6 @@ class HTTP2Protocol(object):
assert settings_ack_frame.flags & frame.Frame.FLAG_ACK
assert len(settings_ack_frame.settings) == 0
-
def next_stream_id(self):
if self.current_stream_id is None:
self.current_stream_id = 1
@@ -89,7 +88,10 @@ class HTTP2Protocol(object):
self.http2_settings[setting] = value
- self.send_frame(frame.SettingsFrame(state=self, flags=frame.Frame.FLAG_ACK))
+ self.send_frame(
+ frame.SettingsFrame(
+ state=self,
+ flags=frame.Frame.FLAG_ACK))
def _create_headers(self, headers, stream_id, end_stream=True):
# TODO: implement max frame size checks and sending in chunks