summaryrefslogtreecommitdiffstats
path: root/pyserver/scripts/test_script.py
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-03-03 15:38:32 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-03-03 15:38:32 +0100
commitc79d43273769d88f7129a3d53c80b85a6dc1946c (patch)
tree0b8071b6261d74ef8bdf50a029525546250369ed /pyserver/scripts/test_script.py
parentee16e47966afe180d3c32e2b1d93301052894fac (diff)
downloadpcitool-c79d43273769d88f7129a3d53c80b85a6dc1946c.tar.gz
pcitool-c79d43273769d88f7129a3d53c80b85a6dc1946c.tar.bz2
pcitool-c79d43273769d88f7129a3d53c80b85a6dc1946c.tar.xz
pcitool-c79d43273769d88f7129a3d53c80b85a6dc1946c.zip
1. Pcipywrap: add persistent locking wrappings
2. html-server: - add scripts tab - change tab view to jQuery tabs
Diffstat (limited to 'pyserver/scripts/test_script.py')
-rw-r--r--pyserver/scripts/test_script.py4
1 files changed, 2 insertions, 2 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')