summaryrefslogtreecommitdiff
path: root/docs-xml/wscript_build
diff options
context:
space:
mode:
authorThomas Nagy <tnagy@waf.io>2015-06-26 20:48:43 +0200
committerAndrew Bartlett <abartlet@samba.org>2015-09-02 00:47:18 +0200
commitffea9a17d775005539692b1516eb4178d6c5234a (patch)
tree3411ac085dc9d449f0fcc71c8d28f4f3ea62719f /docs-xml/wscript_build
parentda9eee80e4bf6a00694074d1a16438420b7c09f2 (diff)
downloadsamba-ffea9a17d775005539692b1516eb4178d6c5234a.tar.gz
build:wafsamba: Close file handles in the build scripts too
Signed-off-by: Thomas Nagy <tnagy@waf.io> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'docs-xml/wscript_build')
-rw-r--r--docs-xml/wscript_build4
1 files changed, 1 insertions, 3 deletions
diff --git a/docs-xml/wscript_build b/docs-xml/wscript_build
index 515746075ac..568eba1d66d 100644
--- a/docs-xml/wscript_build
+++ b/docs-xml/wscript_build
@@ -111,9 +111,7 @@ def smbdotconf_generate_parameter_list(task):
t += "]>\n"
t += "<section>\n"
for article in articles:
- f = open(article.abspath(task.env), 'r')
- t += f.read()
- f.close()
+ t += article.read()
t += "</section>\n"
save_file(parameter_all, t , create_dir=True)