Skip to content

Commit

Permalink
[version_converter] Use xmlparser XML header
Browse files Browse the repository at this point in the history
Closes G-Node#339.
  • Loading branch information
mpsonntag committed Apr 22, 2020
1 parent bc4cf60 commit 385f16b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion odml/tools/converters/version_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from lxml import etree as ET

from ..parser_utils import ParserException
from ..xmlparser import XML_HEADER

from ...format import Document, Section, Property
from ...info import FORMAT_VERSION
Expand Down Expand Up @@ -531,5 +532,5 @@ def write_to_file(self, filename, backend="XML"):

if data and "<odML " in data:
with open(filename, "w") as file:
file.write('<?xml version="1.0" encoding="UTF-8"?>\n')
file.write("%s\n" % XML_HEADER)
file.write(data)

0 comments on commit 385f16b

Please sign in to comment.