You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/docutils/files/docutils-0.7-python-3.2-xml...

17 lines
447 B

http://svn.berlios.de/viewvc/docutils?view=revision&revision=7013
--- docutils/writers/odf_odt/__init__.py
+++ docutils/writers/odf_odt/__init__.py
@@ -300,7 +300,10 @@
def ToString(et):
outstream = StringIO.StringIO()
- et.write(outstream)
+ if sys.version_info >= (3, 2):
+ et.write(outstream, encoding="unicode")
+ else:
+ et.write(outstream)
s1 = outstream.getvalue()
outstream.close()
return s1