mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 12:11:35 +08:00
make parameter parser work with python3
This commit is contained in:
committed by
Lorenz Meier
parent
86cd484b82
commit
07f6165290
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user