Commit 1bf2dd45 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 that we did 31af8997
(XMLExportImport: Base_asXML and Folder_asXML return str, not bytes.,
2024-03-07).
parent cea41511
...@@ -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