Skip to content
Snippets Groups Projects
Commit c69743ab authored by Stefano Nardo's avatar Stefano Nardo Committed by Ugo Albanese
Browse files

Merged in NRRPLT-8105-adding-husky-robot-model-to- (pull request #115)

[NRRPLT-8105] Force encoding of lxml tostring method in order to return a string instead of bytes.

Approved-by: Krzysztof Lebioda
Approved-by: Antoine Detailleur
parent a6dfdf0c
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,11 @@ class ConfigEditor(object): # pragma: no cover
# pylint: disable=no-self-use
import lxml
return lxml.etree.tostring(lxml.etree.XML(plain_text), pretty_print=True)
return lxml.etree.tostring(
lxml.etree.XML(plain_text),
pretty_print=True,
encoding='unicode'
)
def _write_xml(self, plain_text, filename):
"""
......
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