diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-03-13 11:49:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 11:49:58 +0100 |
commit | 4287c7822b8aa06b069e42b44b9aa73396db62f5 (patch) | |
tree | 2db4764933bbf252b8ba0007816527265f4dd79d /doc/tools/makemd.py | |
parent | 6e491ff283b7cfa90a1e27e96edb0b7c9dececa6 (diff) | |
parent | 272ecddb2859e3c184886bc2d142e2e329b8ae83 (diff) |
Merge pull request #17440 from viktor-ferenczi/issue-5042
Properly closing all files in Python build code
Diffstat (limited to 'doc/tools/makemd.py')
-rw-r--r-- | doc/tools/makemd.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/tools/makemd.py b/doc/tools/makemd.py index a73a4337d0..056f1ca82d 100644 --- a/doc/tools/makemd.py +++ b/doc/tools/makemd.py @@ -93,6 +93,8 @@ def make_class_list(class_list, columns): s += '\n' f.write(s) + f.close() + def dokuize_text(txt): @@ -330,6 +332,8 @@ 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: |