aboutsummaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorHenryk Plötz <henryk@ploetzli.ch>2010-10-15 19:00:51 +0200
committerHenryk Plötz <henryk@ploetzli.ch>2010-10-18 06:05:57 +0200
commit144efe1cf76cfb985e5e5e580ba3573781890b67 (patch)
tree2560064864bb8687fa4f92b972846df4c22ad407 /utils.py
parente3433526753f07dd500352ded6e5bcbbb8c39e2e (diff)
Abstract out command class
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 0352447..9f0b731 100644
--- a/utils.py
+++ b/utils.py
@@ -228,6 +228,11 @@ class Transmission_Frame(object):
# Stub for implementation in subclasses
# Semantics should be: c=a.append(b) <=> c.data == a.data + b.data and c.status == b.status
append = None
+
+ @classmethod
+ def parse_fancy(cls, *args):
+ argstring = "".join((" ".join(args)).split())
+ return cls(binascii.unhexlify(argstring))
class Command_Frame(Transmission_Frame):
pass