/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pyserver/scripts/test_script.py

  • Committer: Vasilii Chernov
  • Date: 2016-03-03 14:38:32 UTC
  • mto: This revision was merged to the branch mainline in revision 372.
  • Revision ID: vchernov@inr.ru-20160303143832-0rlinjoy3zczhjt2
1. Pcipywrap: add persistent locking wrappings
2. html-server: 
   - add scripts tab
   - change tab view to jQuery tabs

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
if sys.version_info >= (3,0):
3
3
   import binascii
4
4
   
5
 
def run(ctx, inpt):
 
5
def run(ctx, input):
6
6
   if sys.version_info >= (3,0):
7
7
      return binascii.a2b_uu('111')
8
8
   else:
9
 
      return bytearray('111')
 
9
      return bytearray(str(input) +'11\0\1\n')
10
10