diff options
Diffstat (limited to 'tools/xincludator.py')
-rw-r--r-- | tools/xincludator.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/xincludator.py b/tools/xincludator.py index f9ed49ce4..5f852bfd0 100644 --- a/tools/xincludator.py +++ b/tools/xincludator.py @@ -38,9 +38,10 @@ if __name__ == '__main__': xincludate(dom, argv[0]) if sys.version_info[0] >= 3: - xml = dom.toxml(encoding=None) + xml = dom.toxml('utf-8') + stdout.buffer.write(xml) + stdout.buffer.write(b'\n') else: xml = dom.toxml() - - stdout.write(xml) - stdout.write('\n') + stdout.write(xml) + stdout.write('\n') |