summaryrefslogtreecommitdiff
path: root/tools/eclipse.py
diff options
context:
space:
mode:
authorWayne Lin <[email protected]>2022-01-25 18:53:52 +0800
committerWayne Lin <[email protected]>2022-01-25 18:53:52 +0800
commitc95c296e9915a38a666ae1a2575c2a4d0ba1d376 (patch)
treec6e5a1ffe4ceb997e853ba0c3daffc9dc60c8b79 /tools/eclipse.py
parentf7ba146a01fcf23a2b06a141d1b1a56cb27b878c (diff)
parent32a5668593c578b85560338c29d76f3a252c8dbc (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into nuvoton
# Conflicts: # bsp/gd32/gd32107c-eval/rtconfig.h
Diffstat (limited to 'tools/eclipse.py')
-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..736fcbc66d 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()