aboutsummaryrefslogtreecommitdiffstats
path: root/tlvdecoder.py
diff options
context:
space:
mode:
authorhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2006-06-14 09:11:46 +0000
committerhploetz <hploetz@f711b948-2313-0410-aaa9-d29f33439f0b>2006-06-14 09:11:46 +0000
commit9c614ae526a937e90012febba52724f1a5be3f38 (patch)
tree9a90c7862887bc3b147f3e2c25b7ae54e724f891 /tlvdecoder.py
parent2a18e3482f5cf24ba616b75cd201836b674c8b25 (diff)
TLV_utils.decode as external tool
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@84 f711b948-2313-0410-aaa9-d29f33439f0b
Diffstat (limited to 'tlvdecoder.py')
-rwxr-xr-xtlvdecoder.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tlvdecoder.py b/tlvdecoder.py
new file mode 100755
index 0000000..9f44c80
--- /dev/null
+++ b/tlvdecoder.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+# -*- coding: iso-8859-1 -*-
+
+from TLV_utils import *
+import binascii, sys
+
+if __name__ == "__main__":
+ a = binascii.unhexlify("".join( sys.stdin.read().split() ))
+ print decode(a)