mailr14668 - /1.3/gui/misc.py


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

Header


Content

Posted by edward on September 16, 2011 - 14:53:
Author: bugman
Date: Fri Sep 16 14:53:58 2011
New Revision: 14668

URL: http://svn.gna.org/viewcvs/relax?rev=14668&view=rev
Log:
Fix for the new gui_to_str_or_list() function.


Modified:
    1.3/gui/misc.py

Modified: 1.3/gui/misc.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/misc.py?rev=14668&r1=14667&r2=14668&view=diff
==============================================================================
--- 1.3/gui/misc.py (original)
+++ 1.3/gui/misc.py Fri Sep 16 14:53:58 2011
@@ -335,9 +335,9 @@
     try:
         val = eval(string)
 
-    # Failure, so return the original value.
+    # Catch failures, and try as a string.
     except NameError:
-        return string
+        return str(string)
 
     # Return the list.
     return val




Related Messages


Powered by MHonArc, Updated Fri Sep 16 15:40:02 2011