Author: bugman Date: Sun Mar 24 19:16:54 2013 New Revision: 19139 URL: http://svn.gna.org/viewcvs/relax?rev=19139&view=rev Log: The lib.selection.parse_token() function is using the new Python way of splitting strings. This is via the string's split() method. Modified: trunk/lib/selection.py Modified: trunk/lib/selection.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/selection.py?rev=19139&r1=19138&r2=19139&view=diff ============================================================================== --- trunk/lib/selection.py (original) +++ trunk/lib/selection.py Sun Mar 24 19:16:54 2013 @@ -61,7 +61,7 @@ id_list = [] for token in tokens: # Split by the ',' character. - elements = split(',', token) + elements = token.split(',') # Loop over the elements. for element in elements: @@ -207,7 +207,7 @@ raise RelaxError("Only one '&' boolean operator is supported for the residue component of individual spin IDs.") # Split by '&'. - res_token = split('&', res_info) + res_token = res_info.split('&') # Check and remove the ':' character. for i in range(len(res_token)): @@ -241,7 +241,7 @@ raise RelaxError("Only one '&' boolean operator is supported for the spin component of individual spin IDs.") # Split by '&'. - spin_token = split('&', spin_info) + spin_token = spin_info.split('&') # Check and remove the ':' character. for i in range(len(spin_token)):