SCons: Ensure written files are properly flushed/closed

This broke at least the generation of AndroidManifest.xml with Python 3.13.1.
This commit is contained in:
Rémi Verschelde 2025-01-03 12:22:48 +01:00
parent 69d43053de
commit e6b0829d76
No known key found for this signature in database
GPG key ID: C3336907360768E1
6 changed files with 13 additions and 0 deletions

View file

@ -213,3 +213,5 @@ for c in list(old_doc):
for c in list(new_doc):
write_class(c)
write_string(f, '</doc>\n')
f.close()