make parameter parser work with python3

This commit is contained in:
Thomas Gubler
2015-05-04 14:04:09 +02:00
committed by Lorenz Meier
parent 86cd484b82
commit 07f6165290
3 changed files with 9 additions and 6 deletions
+1 -2
View File
@@ -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")