Ignore:
Timestamp:
23/10/15 09:15:32 (4 years ago)
Author:
mjuckes
Message:

misc updates for python 3

File:
1 edited

Legend:

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

    r429 r433  
    1111  if len(sys.argv) == 1: 
    1212      # Show command-line info and report that you must provide arguments 
    13       print scope.dreqUI.__doc__ 
    14       print "\nERROR: Please provide command-line arguments." 
     13      print( scope.dreqUI.__doc__ ) 
     14      print( "\nERROR: Please provide command-line arguments." ) 
    1515      return 
    1616 
    1717  if sys.argv[1] == '-v': 
    1818      from __init__ import __version__, __versionComment__ 
    19       print 'dreqPy version %s [%s]' % (__version__,__versionComment__) 
     19      print( 'dreqPy version %s [%s]' % (__version__,__versionComment__) ) 
    2020  elif sys.argv[1] == '--unitTest': 
    21       print "Starting test suite 1" 
     21      print( "Starting test suite 1" ) 
    2222      import unitTestsS1 
    23       print "Starting test suite 2" 
     23      print( "Starting test suite 2" ) 
    2424      import unitTestsS2 
    25       print "Tests completed" 
     25      print( "Tests completed" ) 
    2626  else: 
    2727     x = scope.dreqUI(sys.argv[1:]) 
Note: See TracChangeset for help on using the changeset viewer.