mailr14057 - /branches/gui_testing/gui/misc.py


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

Header


Content

Posted by edward on August 02, 2011 - 11:45:
Author: bugman
Date: Tue Aug  2 11:45:05 2011
New Revision: 14057

URL: http://svn.gna.org/viewcvs/relax?rev=14057&view=rev
Log:
Add of the gui_to_*() functions now check for empty unicode strings u'' as 
well.


Modified:
    branches/gui_testing/gui/misc.py

Modified: branches/gui_testing/gui/misc.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/misc.py?rev=14057&r1=14056&r2=14057&view=diff
==============================================================================
--- branches/gui_testing/gui/misc.py (original)
+++ branches/gui_testing/gui/misc.py Tue Aug  2 11:45:05 2011
@@ -162,7 +162,7 @@
     """
 
     # No input.
-    if string == '':
+    if string in ['', u'']:
         return None
 
     # Convert.
@@ -186,7 +186,7 @@
     """
 
     # No input.
-    if string == '':
+    if string in ['', u'']:
         return None
 
     # Convert.
@@ -244,7 +244,7 @@
     """
 
     # No value.
-    if string == '':
+    if string in ['', u'']:
         return None
 
     # Convert.
@@ -261,7 +261,7 @@
     """
 
     # No value.
-    if string == '':
+    if string in ['', u'']:
         return []
 
     # Convert.
@@ -283,7 +283,7 @@
     """
 
     # No value.
-    if string == '':
+    if string in ['', u'']:
         return None
 
     # Convert.




Related Messages


Powered by MHonArc, Updated Tue Aug 02 12:00:02 2011