mailr3579 - /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:49:
Author: bugman
Date: Sun Nov 18 21:49:50 2007
New Revision: 3579

URL: http://svn.gna.org/viewcvs/relax?rev=3579&view=rev
Log:
Fixed a bug in the spin.rename() user function.

The spin ID string was been checked if it was an int whereas the check should 
have been for a
string.


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=3579&r1=3578&r2=3579&view=diff
==============================================================================
--- 1.3/prompt/spin.py (original)
+++ 1.3/prompt/spin.py Sun Nov 18 21:49:50 2007
@@ -258,8 +258,8 @@
             print text
 
         # Spin identification string.
-        if type(spin_id) != int:
-            raise RelaxIntError, ('spin identification string', spin_id)
+        if type(spin_id) != str:
+            raise RelaxStrError, ('spin identification string', spin_id)
 
         # New spin name.
         if type(new_name) != str:




Related Messages


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