aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/h2/h2.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-05-30 12:02:58 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-05-30 12:02:58 +1200
commitf76bfabc5d4ce36c56b1d1fd571728ee06f37b78 (patch)
treed9baea0647598db1eb0c0898ed90e72f4333b80e /netlib/h2/h2.py
parent5e4850d3b3056d90a798d1563f0a619c5ef37e8c (diff)
downloadmitmproxy-f76bfabc5d4ce36c56b1d1fd571728ee06f37b78.tar.gz
mitmproxy-f76bfabc5d4ce36c56b1d1fd571728ee06f37b78.tar.bz2
mitmproxy-f76bfabc5d4ce36c56b1d1fd571728ee06f37b78.zip
Adjust pep8 parameters, reformat
Diffstat (limited to 'netlib/h2/h2.py')
-rw-r--r--netlib/h2/h2.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/netlib/h2/h2.py b/netlib/h2/h2.py
index bfe5832b..707b1465 100644
--- a/netlib/h2/h2.py
+++ b/netlib/h2/h2.py
@@ -44,7 +44,9 @@ class H2Client(tcp.TCPClient):
alp = self.get_alpn_proto_negotiated()
if alp != b'h2':
- raise NotImplementedError("H2Client can not handle unknown protocol: %s" % alp)
+ raise NotImplementedError(
+ "H2Client can not handle unknown protocol: %s" %
+ alp)
print "-> Successfully negotiated 'h2' application layer protocol."
if send_preface:
@@ -79,7 +81,9 @@ class H2Client(tcp.TCPClient):
self.settings[setting] = value
print "-> Setting changed: %s to %d (was %s)" %
- (SettingsFrame.SETTINGS.get_name(setting), value, str(old_value))
+ (SettingsFrame.SETTINGS.get_name(setting),
+ value,
+ str(old_value))
self.send_frame(SettingsFrame(flags=Frame.FLAG_ACK))
print "-> New settings acknowledged."