diff --git a/tools/eclipse.py b/tools/eclipse.py index 6498c1c9f6..410952ce20 100644 --- a/tools/eclipse.py +++ b/tools/eclipse.py @@ -365,7 +365,7 @@ def UpdateProjectStructure(env, prj_name): out = open('.project', 'w') out.write('\n') xml_indent(root) - out.write(etree.tostring(root, encoding='utf-8')) + out.write(etree.tostring(root, encoding='utf-8').decode('utf-8') out.close() return @@ -504,7 +504,7 @@ def UpdateCproject(env, project, excluding, reset, prj_name): out.write('\n') out.write('') xml_indent(root) - out.write(etree.tostring(root, encoding='utf-8')) + out.write(etree.tostring(root, encoding='utf-8').decode('utf-8') out.close()