Changeset 736 for CMIP6dreqbuild


Ignore:
Timestamp:
18/08/16 01:40:30 (3 years ago)
Author:
mjuckes
Message:

print statements upgraded to python3

Location:
CMIP6dreqbuild/trunk/src/framework/dreqPy/examples
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/examples/ex002.py

    r629 r736  
    88      import dreq 
    99    else: 
    10       print 'No dreq.py in specified directory' 
     10      print ( 'No dreq.py in specified directory' ) 
    1111      sys.exit(0) 
    1212  else: 
    13     print 'Specified directoty does not exist' 
     13    print  ('Specified directoty does not exist' ) 
    1414    sys.exit(0) 
    1515else: 
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/examples/ex101.py

    r629 r736  
    66 
    77ver = doc.getElementsByTagName('pav:version')[0] 
    8 print ver.firstChild.data 
     8print ( ver.firstChild.data ) 
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/examples/ex102.py

    r629 r736  
    99    xmlf = fn 
    1010  else: 
    11     print 'File %s not found' % fn 
     11    print ( 'File %s not found' % fn ) 
    1212    sys.exit(0) 
    1313else: 
     
    2626    dcppLinks.append( item ) 
    2727    requestedGroups.add( item.getAttribute( 'refid' ) ) 
    28 print 'Request links found for DCPP: %s' % len( dcppLinks ) 
    2928 
    30 print 'Request groups found for DCPP: %s' % len( requestedGroups ) 
     29print ( 'Request links found for DCPP: %s' % len( dcppLinks ) ) 
     30 
     31print ( 'Request groups found for DCPP: %s' % len( requestedGroups ) ) 
    3132 
    3233sect = doc.getElementsByTagName( 'requestVar' )[0] 
     
    3637    cmorVars.add(  item.getAttribute( 'vid' ) ) 
    3738 
    38 print 'CMOR variables requested by DCPP: %s' % len(cmorVars) 
     39print ( 'CMOR variables requested by DCPP: %s' % len(cmorVars) ) 
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/examples/ex202.py

    r630 r736  
    77      import scope 
    88    else: 
    9       print 'No scope.py in specified directory' 
     9      print ( 'No scope.py in specified directory' ) 
    1010      sys.exit(0) 
    1111  else: 
    12     print 'Specified directoty does not exist' 
     12    print  ('Specified directoty does not exist' ) 
    1313    sys.exit(0) 
    1414else: 
Note: See TracChangeset for help on using the changeset viewer.