From 92476d128a1c9eb0490501f78d4be606a0bd1a3a Mon Sep 17 00:00:00 2001 From: imntjempty <2631140698@qq.com> Date: Tue, 11 Jan 2022 15:48:19 +0800 Subject: [PATCH] tools: fix generate .project file error. --- tools/eclipse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()