aboutsummaryrefslogtreecommitdiff
path: root/Tools/px4params/xmlout.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/px4params/xmlout.py')
-rw-r--r--Tools/px4params/xmlout.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/px4params/xmlout.py b/Tools/px4params/xmlout.py
index 07cced478..b072ab79f 100644
--- a/Tools/px4params/xmlout.py
+++ b/Tools/px4params/xmlout.py
@@ -52,5 +52,4 @@ class XMLOutput():
self.xml_document = ET.ElementTree(xml_parameters)
def Save(self, filename):
- with codecs.open(filename, 'w', 'utf-8') as f:
- self.xml_document.write(f)
+ self.xml_document.write(filename, encoding="UTF-8")