summaryrefslogtreecommitdiffstats
path: root/xml/scripts/test_script.py
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-03-02 14:38:59 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-03-02 14:38:59 +0100
commit02d0026e2df2ba5c68c0c1a67aec4437c9e8e8f3 (patch)
tree2714eb4c293453e04d4886c356d033bbd7923012 /xml/scripts/test_script.py
parent8e7c95957ee73d6c11ef28f7c0e2319a11103783 (diff)
downloadpcitool-02d0026e2df2ba5c68c0c1a67aec4437c9e8e8f3.tar.gz
pcitool-02d0026e2df2ba5c68c0c1a67aec4437c9e8e8f3.tar.bz2
pcitool-02d0026e2df2ba5c68c0c1a67aec4437c9e8e8f3.tar.xz
pcitool-02d0026e2df2ba5c68c0c1a67aec4437c9e8e8f3.zip
Add Python3 support
Diffstat (limited to 'xml/scripts/test_script.py')
-rw-r--r--xml/scripts/test_script.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/xml/scripts/test_script.py b/xml/scripts/test_script.py
index 46a5b25..8f236e9 100644
--- a/xml/scripts/test_script.py
+++ b/xml/scripts/test_script.py
@@ -1,2 +1,10 @@
+import sys
+if sys.version_info >= (3,0):
+ import binascii
+
def run(ctx, inpt):
- return bytearray('111')
+ if sys.version_info >= (3,0):
+ return binascii.a2b_uu('111')
+ else:
+ return bytearray('111')
+