diff options
author | Alexander Akulich <akulichalexander@gmail.com> | 2021-01-26 18:23:28 +0300 |
---|---|---|
committer | Alexander Akulich <akulichalexander@gmail.com> | 2021-01-26 18:23:28 +0300 |
commit | c5c0ed20267d530da5f8084d4fac664d95f31111 (patch) | |
tree | 5ca44db1e8a71058ceacfff7869c740c905cae6c /tools/xincludator.py | |
parent | 2ec2564642ca3c3e84cc7fc0c29c5da2567201dd (diff) | |
parent | 9c6c6fb5203d8cb73064a02cc6b147aa91908952 (diff) | |
download | telepathy-glib-c5c0ed20267d530da5f8084d4fac664d95f31111.tar.gz |
Merge 'master' into telepathy-glib-0.24 (the branch has only fixes)
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') |