summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorimntjempty <[email protected]>2022-01-11 15:48:19 +0800
committerimntjempty <[email protected]>2022-01-11 15:48:19 +0800
commit92476d128a1c9eb0490501f78d4be606a0bd1a3a (patch)
tree973322afe85aad09823f8b050ee82a85c24e82ed /tools
parent982ad7bcbcbdc31305883803fadf63bad72dbc73 (diff)
tools: fix generate .project file error.
Diffstat (limited to 'tools')
-rw-r--r--tools/eclipse.py4
1 files 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('<?xml version="1.0" encoding="UTF-8"?>\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('<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n')
out.write('<?fileVersion 4.0.0?>')
xml_indent(root)
- out.write(etree.tostring(root, encoding='utf-8'))
+ out.write(etree.tostring(root, encoding='utf-8').decode('utf-8')
out.close()