summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/docutils/files/docutils-0.7-python-3.2-xml.etree.ElementTree.patch')
-rw-r--r--dev-python/docutils/files/docutils-0.7-python-3.2-xml.etree.ElementTree.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-python/docutils/files/docutils-0.7-python-3.2-xml.etree.ElementTree.patch b/dev-python/docutils/files/docutils-0.7-python-3.2-xml.etree.ElementTree.patch
new file mode 100644
index 00000000000..0e77f7e974a
--- /dev/null
+++ b/dev-python/docutils/files/docutils-0.7-python-3.2-xml.etree.ElementTree.patch
@@ -0,0 +1,16 @@
+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