Commit 8681bf75 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Prettified Message stringification

parent 990e00af
......@@ -16,7 +16,7 @@ class Message(object):
return self.frame().fragment(fragment_size, mask)
def __str__(self):
return '<%s opcode=%x size=%d>' \
return '<%s opcode=0x%X size=%d>' \
% (self.__class__.__name__, self.opcode, len(self.payload))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment