summaryrefslogtreecommitdiff
path: root/grc/core/ParseXML.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/core/ParseXML.py')
-rw-r--r--grc/core/ParseXML.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/core/ParseXML.py b/grc/core/ParseXML.py
index 163289ba06..430ba5b474 100644
--- a/grc/core/ParseXML.py
+++ b/grc/core/ParseXML.py
@@ -156,7 +156,7 @@ def to_file(nested_data, xml_file):
), xml_declaration=True, pretty_print=True, encoding='utf-8')
xml_data += etree.tostring(_to_file(nested_data)[0],
pretty_print=True, encoding='utf-8')
- with open(xml_file, 'w') as fp:
+ with open(xml_file, 'wb') as fp:
fp.write(xml_data)