Ignore:
Timestamp:
04/11/18 13:57:42 (6 years ago)
Author:
martijk
Message:

python3 compatible print #26732

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/new_interface.py

    r339 r356  
    3434  node = p.getnode("r2n2", l)
    3535
    36   print node.name
    37   print node.name, node['np']
     36  print(node.name)
     37  print(node.name, node['np'])
    3838
    3939  sys.exit(0)
     
    4141  #nodes = p.getnodes(l)
    4242  for id in nodes:
    43         print id
     43        print(id)
    4444
    4545        try:
    46                 print nodes[id].np
    47                 print nodes[id].status.arch
    48                 print nodes[id].status.uname
    49                 print nodes[id].state
     46                print(nodes[id].np)
     47                print(nodes[id].status.arch)
     48                print(nodes[id].status.uname)
     49                print(nodes[id].state)
    5050        except PBSError, detail:
    51                 print detail
     51                print(detail)
    5252                pass
    5353       
Note: See TracChangeset for help on using the changeset viewer.