summaryrefslogtreecommitdiff
path: root/feedgenerator
diff options
context:
space:
mode:
authorSimon Conseil <contact@saimon.org>2013-05-25 00:53:31 +0200
committerSimon Conseil <contact@saimon.org>2013-05-25 00:58:23 +0200
commit556b6d4bcbd60b2f29e6bba8a8feefe3a223242d (patch)
tree47934e68d30ddb8c57a90cff8f42c9d39bb9a3c0 /feedgenerator
parent8cf722a01ef7466dd0266508a36cd86045d2727f (diff)
downloadfeedgenerator-556b6d4bcbd60b2f29e6bba8a8feefe3a223242d.tar.gz
self._write wants a unicode string on python 2.
Diffstat (limited to 'feedgenerator')
-rw-r--r--feedgenerator/django/utils/xmlutils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/feedgenerator/django/utils/xmlutils.py b/feedgenerator/django/utils/xmlutils.py
index 0ee81aa..fc1be2b 100644
--- a/feedgenerator/django/utils/xmlutils.py
+++ b/feedgenerator/django/utils/xmlutils.py
@@ -2,6 +2,8 @@
Utilities for XML generation/parsing.
"""
+import six
+
from xml.sax.saxutils import XMLGenerator, quoteattr
class SimplerXMLGenerator(XMLGenerator):
@@ -18,4 +20,4 @@ class SimplerXMLGenerator(XMLGenerator):
# sort attributes for consistent output
for (name, value) in sorted(attrs.items()):
self._write(' %s=%s' % (name, quoteattr(value)))
- self._write('>')
+ self._write(six.u('>'))