Commit 05971e68 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

syncml: ERP5Conduit can expect that xml_mapping method returns str().

It was using bytes(), but this seems wrong now.
parent ccd0b4ee
...@@ -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