- Timestamp:
- Dec 4, 2015 12:41:47 PM (9 years ago)
- 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
- Location:
- doc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/conf.py
r0496031 r9404dd3 22 22 sys.path.insert(0, os.path.abspath('_extensions')) 23 23 sys.path.insert(0, os.path.abspath('.')) # needed for extension tests 24 print "\n".join(sys.path)24 print("\n".join(sys.path)) 25 25 import sasmodels 26 26 -
doc/gentoc.py
r7bb290c r9404dd3 1 from __future__ import print_function 2 1 3 import sys 2 4 # make sure sasmodels is on the path … … 39 41 def _maybe_make_category(category, models, cat_files, model_toc): 40 42 if category not in cat_files: 41 print >>sys.stderr, "Unexpected category %s containing"%category, models43 print("Unexpected category %s containing"%category, models, file=sys.stderr) 42 44 title = category.capitalize()+" Functions" 43 45 cat_files[category] = _make_category(category, category, title, model_toc) … … 45 47 def generate_toc(model_files): 46 48 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) 48 50 49 51 # find all categories … … 55 57 model_definition = load_model_definition(model_name) 56 58 if not hasattr(model_definition, 'category'): 57 print >>sys.stderr, "Missing category for",item59 print("Missing category for", item, file=sys.stderr) 58 60 else: 59 61 category.setdefault(model_definition.category,[]).append(model_name) … … 62 64 for k,v in category.items(): 63 65 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) 65 67 66 68 # Generate category files for the table of contents.
Note: See TracChangeset
for help on using the changeset viewer.