SCons: Ensure written files are properly flushed/closed

Also add `core/method_bind_ext.inc` to `.gitignore`.
This commit is contained in:
Rémi Verschelde
2025-01-03 22:44:20 +01:00
parent eb111c1d39
commit ad2fb7d93b
9 changed files with 20 additions and 10 deletions

View File

@ -85,6 +85,7 @@ def make_class_list(class_list, columns):
s += '\n'
f.write(s)
f.close()
def dokuize_text(txt):
@ -317,6 +318,7 @@ def make_doku_class(node):
f.write('\n')
f.write(dokuize_text(d.text.strip()))
f.write('\n')
f.close()
for file in input_list: