mailr6001 - /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 April 25, 2008 - 11:31:
Author: bugman
Date: Fri Apr 25 11:31:45 2008
New Revision: 6001

URL: http://svn.gna.org/viewcvs/relax?rev=6001&view=rev
Log:
The spin_id args to spin.name() and spin.number() can now be None to identify 
all spins.


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=6001&r1=6000&r2=6001&view=diff
==============================================================================
--- 1.3/prompt/spin.py (original)
+++ 1.3/prompt/spin.py Fri Apr 25 11:31:45 2008
@@ -258,8 +258,8 @@
             print text
 
         # Spin identification string.
-        if type(spin_id) != str:
-            raise RelaxStrError, ('spin identification string', spin_id)
+        if spin_id != None and type(spin_id) != str:
+            raise RelaxNoneStrError, ('spin identification string', spin_id)
 
         # New spin name.
         if type(name) != str:
@@ -307,8 +307,8 @@
             print text
 
         # Spin identification string.
-        if type(spin_id) != str:
-            raise RelaxStrError, ('spin identification string', spin_id)
+        if spin_id != None and type(spin_id) != str:
+            raise RelaxNoneStrError, ('spin identification string', spin_id)
 
         # New spin number.
         if type(number) != int:




Related Messages


Powered by MHonArc, Updated Fri Apr 25 11:40:24 2008