Author: bugman Date: Thu Aug 4 11:08:58 2011 New Revision: 14103 URL: http://svn.gna.org/viewcvs/relax?rev=14103&view=rev Log: Fix for the RelaxWarning system on Mac OS X, the base class __str__ method now returns a simple string. On a Mac, the warning message text was in unicode whereas the __str__() method must return a standard string. So now __str__() is using the str() method to convert. Modified: 1.3/relax_warnings.py Modified: 1.3/relax_warnings.py URL: http://svn.gna.org/viewcvs/relax/1.3/relax_warnings.py?rev=14103&r1=14102&r2=14103&view=diff ============================================================================== --- 1.3/relax_warnings.py (original) +++ 1.3/relax_warnings.py Thu Aug 4 11:08:58 2011 @@ -79,7 +79,7 @@ class BaseWarning(Warning): def __str__(self): - return self.text + return str(self.text) # Standard warnings.