Skip to content
Snippets Groups Projects
Commit 0539433e authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Adds str representation to Prefix

parent 12f4d5b0
No related branches found
No related tags found
No related merge requests found
......@@ -120,3 +120,7 @@ class Prefix(object):
self.tag = Tag(data=value[:Tag.SIZE])
self.length = struct.unpack('>i', value[Tag.SIZE:Tag.SIZE+4])[0]
def __str__(self):
return ("ControlHost Prefix with tag '{0}' ({1} bytes of data)"
.format(self.tag, self.length))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment