diff options
Diffstat (limited to 'xml/scripts')
-rw-r--r-- | xml/scripts/test_script.py | 10 |
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') + |