Changeset 21bba86 in sasview for docs


Ignore:
Timestamp:
Apr 11, 2017 5:51:01 AM (7 years ago)
Author:
ajj
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
01f1e17
Parents:
f4d571b
Message:

More print fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/build_sphinx.py

    rf4d571b r21bba86  
    1212import shutil 
    1313import imp 
     14from __future__ import print_function 
     15 
    1416from glob import glob 
    15  
    1617from distutils.dir_util import copy_tree 
    1718from distutils.util import get_platform 
     
    5556SASMODELS_DEST_BUILDIMG = os.path.join(SASMODELS_DEST_PROLOG, "user", "models", "img") 
    5657 
    57 #if os.path.exists(SASMODELS_SOURCE_PROLOG): 
    58 #    print "Found models prolog folder at", SASMODELS_SOURCE_PROLOG 
    59 #if os.path.exists(SASMODELS_SOURCE_REF_MODELS): 
    60 #    print "Found models ref folder at", SASMODELS_SOURCE_REF_MODELS 
    61 #if os.path.exists(SASMODELS_SOURCE_MODELS): 
    62 #    print "Found models folder at", SASMODELS_SOURCE_MODELS 
    63 #if os.path.exists(SASMODELS_SOURCE_IMG): 
    64 #    print "Found img folder at", SASMODELS_SOURCE_IMG 
    65 #if os.path.exists(SASMODELS_DEST_REF_MODELS): 
    66 #    print "Found models ref folder at", SASMODELS_DEST_REF_MODELS 
    67 #if os.path.exists(SASMODELS_DEST_MODELS): 
    68 #    print "Found models folder at", SASMODELS_DEST_MODELS 
    69 #if os.path.exists(SASMODELS_DEST_IMG): 
    70 #    print "Found img folder at", SASMODELS_DEST_IMG 
    71 #sys.exit() 
    7258 
    7359SPHINX_BUILD = os.path.join(CURRENT_SCRIPT_DIR, "build") 
     
    8874        s=open(filename).read() 
    8975        if old_string in s: 
    90                 print 'Changing "{old_string}" to "{new_string}"'.format(**locals()) 
     76                print('Changing "{old_string}" to "{new_string}"'.format(**locals())) 
    9177                s=s.replace(old_string, new_string) 
    9278                f=open(filename, 'w') 
     
    9581                f.close() 
    9682        else: 
    97                 print 'No occurences of "{old_string}" found.'.format(**locals()) 
     83                print('No occurences of "{old_string}" found.'.format(**locals())) 
    9884 
    9985def _remove_dir(dir_path): 
    10086    """Removes the given directory.""" 
    10187    if os.path.isdir(dir_path): 
    102         print "Removing \"%s\"... " % dir_path 
     88        print("Removing \"%s\"... " % dir_path) 
    10389        shutil.rmtree(dir_path) 
    10490 
     
    208194                    shutil.copy(fromhere,tohere) 
    209195    else: 
    210         print "no source directory",SASMODELS_SOURCE_PROLOG, "was found" 
     196        print("no source directory",SASMODELS_SOURCE_PROLOG, "was found") 
    211197 
    212198    if os.path.exists(SASMODELS_SOURCE_GPU): 
Note: See TracChangeset for help on using the changeset viewer.