Author: bugman Date: Sun Oct 7 16:15:02 2012 New Revision: 17714 URL: http://svn.gna.org/viewcvs/relax?rev=17714&view=rev Log: Reverted r17681 as file objects in relax are now always treated as text, so byte streams are not needed. The command used was: svn merge -r17681:r17680 . Modified: trunk/data/__init__.py Modified: trunk/data/__init__.py URL: http://svn.gna.org/viewcvs/relax/trunk/data/__init__.py?rev=17714&r1=17713&r2=17714&view=diff ============================================================================== --- trunk/data/__init__.py (original) +++ trunk/data/__init__.py Sun Oct 7 16:15:02 2012 @@ -573,7 +573,4 @@ self[pipe].to_xml(xmldoc, pipe_element) # Write out the XML file. - text = xmldoc.toprettyxml(indent=' ') - if hasattr(text, 'encode'): # Python 3 string support. - text = text.encode() - file.write(text) + file.write(xmldoc.toprettyxml(indent=' '))