Commit ef0869cd 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 31af8997
(XMLExportImport: Base_asXML and Folder_asXML return str, not bytes.,
2024-03-07).
parent b05e8776
......@@ -563,7 +563,7 @@ class ERP5Conduit(XMLSyncUtilsMixin):
XXX name of method is not good, because content is not necessarily XML
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)
else:
# 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