Changeset 9404dd3 in sasmodels for doc


Ignore:
Timestamp:
Dec 4, 2015 12:41:47 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
eaca9eb
Parents:
7bb290c
Message:

python 3.x support

Location:
doc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/conf.py

    r0496031 r9404dd3  
    2222sys.path.insert(0, os.path.abspath('_extensions')) 
    2323sys.path.insert(0, os.path.abspath('.')) # needed for extension tests 
    24 print "\n".join(sys.path) 
     24print("\n".join(sys.path)) 
    2525import sasmodels 
    2626 
  • doc/gentoc.py

    r7bb290c r9404dd3  
     1from __future__ import print_function 
     2 
    13import sys 
    24# make sure sasmodels is on the path 
     
    3941def _maybe_make_category(category, models, cat_files, model_toc): 
    4042    if category not in cat_files: 
    41         print >>sys.stderr, "Unexpected category %s containing"%category, models 
     43        print("Unexpected category %s containing"%category, models, file=sys.stderr) 
    4244        title = category.capitalize()+" Functions" 
    4345        cat_files[category] = _make_category(category, category, title, model_toc) 
     
    4547def generate_toc(model_files): 
    4648    if not model_files: 
    47         print >>sys.stderr, "gentoc needs a list of model files" 
     49        print("gentoc needs a list of model files", file=sys.stderr) 
    4850 
    4951    # find all categories 
     
    5557        model_definition = load_model_definition(model_name) 
    5658        if not hasattr(model_definition, 'category'): 
    57             print >>sys.stderr, "Missing category for",item 
     59            print("Missing category for", item, file=sys.stderr) 
    5860        else: 
    5961            category.setdefault(model_definition.category,[]).append(model_name) 
     
    6264    for k,v in category.items(): 
    6365        if len(v) == 1: 
    64             print >>sys.stderr, "Category %s contains only %s"%(k,v[0]) 
     66            print("Category %s contains only %s"%(k,v[0]), file=sys.stderr) 
    6567 
    6668    # Generate category files for the table of contents. 
Note: See TracChangeset for help on using the changeset viewer.