summaryrefslogtreecommitdiffstats
path: root/pyserver/scripts
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-04 19:30:43 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-04 19:30:43 +0100
commitc8b64cf87a3ff10abac92835c07b1dd76319f185 (patch)
tree0a86fd68612ab35cccec3567015c60633cb526f8 /pyserver/scripts
parentc38706b3c8bbaec638cc49745fd71dfb14df37e5 (diff)
parent327b71b05b60a03e56fad618b51fbccd06c3776d (diff)
downloadpcitool-c8b64cf87a3ff10abac92835c07b1dd76319f185.tar.gz
pcitool-c8b64cf87a3ff10abac92835c07b1dd76319f185.tar.bz2
pcitool-c8b64cf87a3ff10abac92835c07b1dd76319f185.tar.xz
pcitool-c8b64cf87a3ff10abac92835c07b1dd76319f185.zip
Integrate last part of Python code from Vasiliy Chernov
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();