summaryrefslogtreecommitdiffstats
path: root/pyserver/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'pyserver/scripts')
-rw-r--r--pyserver/scripts/test_script.py4
-rw-r--r--pyserver/scripts/test_script2.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/pyserver/scripts/test_script.py b/pyserver/scripts/test_script.py
index 8f236e9..fa0864c 100644
--- a/pyserver/scripts/test_script.py
+++ b/pyserver/scripts/test_script.py
@@ -2,9 +2,9 @@ import sys
if sys.version_info >= (3,0):
import binascii
-def run(ctx, inpt):
+def run(ctx, input):
if sys.version_info >= (3,0):
return binascii.a2b_uu('111')
else:
- return bytearray('111')
+ return bytearray(str(input) +'11\0\1\n')
diff --git a/pyserver/scripts/test_script2.py b/pyserver/scripts/test_script2.py
index 16e4adb..a961493 100644
--- a/pyserver/scripts/test_script2.py
+++ b/pyserver/scripts/test_script2.py
@@ -1,4 +1,4 @@
description='this is a test script'
-def run(ctx, inpt):
+def run(ctx, input):
return ctx.get_registers_list();