Author: bugman Date: Sun Nov 18 21:45:38 2007 New Revision: 3576 URL: http://svn.gna.org/viewcvs/relax?rev=3576&view=rev Log: Fix to allow the spin to target to be set to None in the spin.copy() user function. Modified: 1.3/prompt/spin.py Modified: 1.3/prompt/spin.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/spin.py?rev=3576&r1=3575&r2=3576&view=diff ============================================================================== --- 1.3/prompt/spin.py (original) +++ 1.3/prompt/spin.py Sun Nov 18 21:45:38 2007 @@ -104,12 +104,12 @@ raise RelaxStrError, ('spin from', spin_from) # The data pipe to argument. - if pipe_to != None and type(pipe_to) != str: + if pipe_to != None and type(pipe_to) != str: raise RelaxNoneStrError, ('data pipe to', pipe_to) # The spin to argument. - if type(spin_to) != str: - raise RelaxStrError, ('spin to', spin_to) + if spin_to != None and type(spin_to) != str: + raise RelaxNoneStrError, ('spin to', spin_to) # Execute the functional code. spin.copy(pipe_from=pipe_from, spin_from=spin_from, pipe_to=pipe_to, spin_to=spin_to)