Author: bugman Date: Tue Feb 23 16:06:48 2010 New Revision: 10860 URL: http://svn.gna.org/viewcvs/relax?rev=10860&view=rev Log: A python 3.0 fix for the grace module. The command used was: 2to3 -w \
-f buffer \ -f idioms \ -f set_literal \ -f ws_comma \ -x except \ -x import \ -x imports \ -x long \ -x numliterals \ -x xrange \ relax .
Modified: 1.3/generic_fns/grace.py Modified: 1.3/generic_fns/grace.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/grace.py?rev=10860&r1=10859&r2=10860&view=diff ============================================================================== --- 1.3/generic_fns/grace.py (original) +++ 1.3/generic_fns/grace.py Tue Feb 23 16:06:48 2010 @@ -154,7 +154,7 @@ continue # One set per spin (list data has been returned). - if data_list or type(x_val) == list: + if data_list or isinstance(x_val, list): # Append a new set structure and set the name to the spin ID. data[0].append([]) set_labels.append("Spin %s" % spin_id)