Commit b755a450 authored by Jérome Perrin's avatar Jérome Perrin

syncml: ERP5Conduit can expect that xml_mapping method returns str

it was using bytes, but this seems wrong now that we did 31af8997a6
(XMLExportImport: Base_asXML and Folder_asXML return str, not bytes.,
2024-03-07).
parent 16f1e31b
...@@ -563,7 +563,7 @@ class ERP5Conduit(XMLSyncUtilsMixin): ...@@ -563,7 +563,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