mailr3575 - /1.3/prompt/spin.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on November 18, 2007 - 21:43:
Author: bugman
Date: Sun Nov 18 21:43:39 2007
New Revision: 3575

URL: http://svn.gna.org/viewcvs/relax?rev=3575&view=rev
Log:
Fix to allow the pipes 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=3575&r1=3574&r2=3575&view=diff
==============================================================================
--- 1.3/prompt/spin.py (original)
+++ 1.3/prompt/spin.py Sun Nov 18 21:43:39 2007
@@ -96,16 +96,16 @@
             print text
 
         # The data pipe from argument.
-        if type(pipe_from) != str:
-            raise RelaxStrError, ('data pipe from', pipe_from)
+        if pipe_from != None and type(pipe_from) != str:
+            raise RelaxNoneStrError, ('data pipe from', pipe_from)
 
         # The spin from argument.
         if type(spin_from) != str:
             raise RelaxStrError, ('spin from', spin_from)
 
         # The data pipe to argument.
-        if type(pipe_to) != str:
-            raise RelaxStrError, ('data pipe to', pipe_to)
+        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:




Related Messages


Powered by MHonArc, Updated Sun Nov 18 22:00:13 2007