From 8cec187f9a606eba362b437eeab407cefe8600c6 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 3 Oct 2016 14:01:40 +1100 Subject: http2: frames don't have a human_readable method --- pathod/protocols/http2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pathod') diff --git a/pathod/protocols/http2.py b/pathod/protocols/http2.py index 7b162664..78fe6111 100644 --- a/pathod/protocols/http2.py +++ b/pathod/protocols/http2.py @@ -250,13 +250,13 @@ class HTTP2StateProtocol(object): self.tcp_handler.wfile.write(raw_bytes) self.tcp_handler.wfile.flush() if not hide and self.dump_frames: # pragma no cover - print(frm.human_readable(">>")) + 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 - print(frm.human_readable("<<")) + print("<< " + repr(frm)) if isinstance(frm, hyperframe.frame.PingFrame): raw_bytes = hyperframe.frame.PingFrame(flags=['ACK'], payload=frm.payload).serialize() @@ -341,7 +341,7 @@ class HTTP2StateProtocol(object): if self.dump_frames: # pragma no cover for frm in frms: - print(frm.human_readable(">>")) + print(">> ", repr(frm)) return [frm.serialize() for frm in frms] @@ -359,7 +359,7 @@ class HTTP2StateProtocol(object): if self.dump_frames: # pragma no cover for frm in frms: - print(frm.human_readable(">>")) + print(">> ", repr(frm)) return [frm.serialize() for frm in frms] -- cgit v1.2.3