diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-05-17 10:33:35 +0800 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-05-17 10:33:35 +0800 |
commit | 3fadda2bbad10fddc055d61c417304fcaab8eff1 (patch) | |
tree | a5ec2201629f11ecd4238c2e7aaa0ba4e18f38e4 /pathod | |
parent | dd3067ab6e1d60363c0b9fff1b680689121bf649 (diff) | |
download | mitmproxy-3fadda2bbad10fddc055d61c417304fcaab8eff1.tar.gz mitmproxy-3fadda2bbad10fddc055d61c417304fcaab8eff1.tar.bz2 mitmproxy-3fadda2bbad10fddc055d61c417304fcaab8eff1.zip |
fix pragmas
Diffstat (limited to 'pathod')
-rw-r--r-- | pathod/protocols/http2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pathod/protocols/http2.py b/pathod/protocols/http2.py index 7c88c5c7..cfc71650 100644 --- a/pathod/protocols/http2.py +++ b/pathod/protocols/http2.py @@ -247,13 +247,13 @@ class HTTP2StateProtocol: raw_bytes = frm.serialize() self.tcp_handler.wfile.write(raw_bytes) self.tcp_handler.wfile.flush() - if not hide and self.dump_frames: # pragma no cover + if not hide and self.dump_frames: # pragma: no cover print(">> " + repr(frm)) def read_frame(self, hide=False): while True: frm = http2.parse_frame(*http2.read_raw_frame(self.tcp_handler.rfile)) - if not hide and self.dump_frames: # pragma no cover + if not hide and self.dump_frames: # pragma: no cover print("<< " + repr(frm)) if isinstance(frm, hyperframe.frame.PingFrame): @@ -337,7 +337,7 @@ class HTTP2StateProtocol: if end_stream: frms[0].flags.add('END_STREAM') - if self.dump_frames: # pragma no cover + if self.dump_frames: # pragma: no cover for frm in frms: print(">> ", repr(frm)) @@ -355,7 +355,7 @@ class HTTP2StateProtocol: data=body[i:i + chunk_size]) for i in chunks] frms[-1].flags.add('END_STREAM') - if self.dump_frames: # pragma no cover + if self.dump_frames: # pragma: no cover for frm in frms: print(">> ", repr(frm)) |