Author: bugman Date: Wed Mar 20 10:28:25 2013 New Revision: 18903 URL: http://svn.gna.org/viewcvs/relax?rev=18903&view=rev Log: Fix for a nasty bug introduced at r18901. The string decode() method was being called for the version.url() and version.revision() functions to handle Python 3. However this was causing strings in Python 2 to be converted to unicode, which then caused the saving of XML state files to fail. Now the version information is explicitly converted to a string using the str() builtin function. Modified: trunk/version.py Modified: trunk/version.py URL: http://svn.gna.org/viewcvs/relax/trunk/version.py?rev=18903&r1=18902&r2=18903&view=diff ============================================================================== --- trunk/version.py (original) +++ trunk/version.py Wed Mar 20 10:28:25 2013 @@ -71,7 +71,7 @@ # The revision. if len(row) and row[0] == 'Revision:': - return row[1] + return str(row[1]) def url(): @@ -107,7 +107,7 @@ # The revision. if len(row) and row[0] == 'URL:': - return row[1] + return str(row[1]) def version_full():