summaryrefslogtreecommitdiffstats
path: root/doc/tools/makemd.py
diff options
context:
space:
mode:
authorViktor Ferenczi <viktor@ferenczi.eu>2018-03-10 18:37:33 +0100
committerViktor Ferenczi <viktor@ferenczi.eu>2018-03-11 14:55:50 +0100
commit272ecddb2859e3c184886bc2d142e2e329b8ae83 (patch)
tree8f76dbf6737196fbb66a1b379e1f18437f609173 /doc/tools/makemd.py
parenteceba5aa6a36521c878cf976845123e820d27161 (diff)
downloadredot-engine-272ecddb2859e3c184886bc2d142e2e329b8ae83.tar.gz
Properly closing all files in Python code
Diffstat (limited to 'doc/tools/makemd.py')
-rw-r--r--doc/tools/makemd.py4
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: