mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00:07 +01:00
Use encoding when postprocessing the documentation files
This commit is contained in:
@@ -683,7 +683,7 @@ def postProcess(folder, options):
|
|||||||
|
|
||||||
methods_done = properties_done = False
|
methods_done = properties_done = False
|
||||||
|
|
||||||
fid = open(files, "rt")
|
fid = textfile_open(files, "rt")
|
||||||
orig_text = text = fid.read()
|
orig_text = text = fid.read()
|
||||||
fid.close()
|
fid.close()
|
||||||
|
|
||||||
@@ -738,7 +738,7 @@ def postProcess(folder, options):
|
|||||||
newtext = addJavaScript(newtext)
|
newtext = addJavaScript(newtext)
|
||||||
|
|
||||||
if orig_text != newtext:
|
if orig_text != newtext:
|
||||||
fid = open(files, "wt")
|
fid = textfile_open(files, "wt")
|
||||||
fid.write(newtext)
|
fid.write(newtext)
|
||||||
fid.close()
|
fid.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user