1 parent d3011d6 commit af17f3eCopy full SHA for af17f3e
1 file changed
fix_devhelp-links.py
@@ -45,7 +45,8 @@
45
target = '404'
46
el.set('link', target)
47
48
-out_f = open(out_fn, 'w', encoding='utf-8')
49
-out_f.write(e.tostring(root, encoding='unicode', pretty_print=True))
+out_f = open(out_fn, 'wb')
+out_f.write(e.tostring(root, encoding='utf-8', pretty_print=True,
50
+ xml_declaration=True))
51
out_f.close()
52
0 commit comments