Commit 57d21dfa authored by Arnaud Fontaine's avatar Arnaud Fontaine

fixup! BusinessTemplate,XMLExportImport: support python3

syncml: ERP5Conduit can expect that xml_mapping method returns str(). It was
using bytes(), but this seems wrong now.
parent 1d1769a8
...@@ -564,7 +564,7 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -564,7 +564,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
XXX name of method is not good, because content is not necessarily XML XXX name of method is not good, because content is not necessarily XML
return a xml with id replaced by a new id return a xml with id replaced by a new id
""" """
if isinstance(xml, bytes): if isinstance(xml, (str, bytes)):
xml = etree.XML(xml, parser=parser) xml = etree.XML(xml, parser=parser)
else: else:
# copy of xml object for modification # copy of xml object for modification
......
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