/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: Suren A. Chilingaryan
  • Date: 2016-03-04 18:30:43 UTC
  • mfrom: (346.1.39 pcitool)
  • Revision ID: csa@suren.me-20160304183043-mjf6xvyermjh5olg
Integrate last part of Python code from Vasiliy Chernov

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