From 0269d0fb8b8726f8a84ebe916a553ef435a3a50d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 5 Jun 2015 17:08:22 +1200 Subject: [PATCH] repr for websocket frames --- netlib/websockets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netlib/websockets.py b/netlib/websockets.py index bf920897d..346adf1bd 100644 --- a/netlib/websockets.py +++ b/netlib/websockets.py @@ -332,6 +332,9 @@ class Frame(object): ret = ret + "\nPayload:\n" + utils.cleanBin(self.payload) return ret + def __repr__(self): + return self.header.human_readable() + def to_bytes(self): """ Serialize the frame to wire format. Returns a string.