Author: bugman Date: Mon Nov 14 17:13:07 2011 New Revision: 14998 URL: http://svn.gna.org/viewcvs/relax?rev=14998&view=rev Log: Bug fix for the compilation of the user manual. The molecule user function class used the temporary variable i, which was causing the fetch_docstrings script to fail. Modified: 1.3/prompt/molecule.py Modified: 1.3/prompt/molecule.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/molecule.py?rev=14998&r1=14997&r2=14998&view=diff ============================================================================== --- 1.3/prompt/molecule.py (original) +++ 1.3/prompt/molecule.py Mon Nov 14 17:13:07 2011 @@ -102,8 +102,8 @@ ["mol_type", "The type of molecule."]] create._doc_desc = """ This adds a new molecule data container to the relax data storage object. The same molecule name cannot be used more than once. The molecule type need not be specified. However, if given, it should be one of""" - for i in range(len(ALLOWED_MOL_TYPES)): - create._doc_desc = "%s '%s'," % (create._doc_desc, ALLOWED_MOL_TYPES[i]) + for _i in range(len(ALLOWED_MOL_TYPES)): + create._doc_desc = "%s '%s'," % (create._doc_desc, ALLOWED_MOL_TYPES[_i]) create._doc_desc = "%s or '%s'." % (create._doc_desc, ALLOWED_MOL_TYPES[-1]) create._doc_examples = """ To create the molecules 'Ap4Aase', 'ATP', and 'MgF4', type: @@ -228,8 +228,8 @@ This allows the type of the molecule to be specified. It can be one of: """ - for i in range(len(ALLOWED_MOL_TYPES)): - type._doc_desc = "%s '%s',\n" % (type._doc_desc, ALLOWED_MOL_TYPES[i]) + for _i in range(len(ALLOWED_MOL_TYPES)): + type._doc_desc = "%s '%s',\n" % (type._doc_desc, ALLOWED_MOL_TYPES[_i]) type._doc_desc = "%s '%s'.\n" % (type._doc_desc, ALLOWED_MOL_TYPES[-1]) type._doc_examples = """ To set the molecule 'Ap4Aase' to the 'protein' type, type one of: