Commit 68a7274c authored by Jérome Perrin's avatar Jérome Perrin

Formulator: remove unnecessary if six.PY3, bytes2str is no-op on py2

parent 32d815f1
...@@ -83,6 +83,4 @@ def formToXML(form, prologue=1): ...@@ -83,6 +83,4 @@ def formToXML(form, prologue=1):
else: else:
xml = etree.tostring(form_as_xml, encoding=form.stored_encoding, xml = etree.tostring(form_as_xml, encoding=form.stored_encoding,
xml_declaration=True, pretty_print=True) xml_declaration=True, pretty_print=True)
if six.PY3: return bytes2str(xml)
xml = bytes2str(xml)
return xml
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment