From 5ad629dcb957e45637f3a71309fa51abd87b267d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Sun, 25 Aug 2019 23:09:19 +0200 Subject: [PATCH] wscript: avoid inefficient string concatenations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjoern Jacke Reviewed-by: Matthias Dieter Wallnöfer --- wscript | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 579d35f2719..3e04df04080 100644 --- a/wscript +++ b/wscript @@ -419,10 +419,9 @@ def wafdocs(ctx): os.system('pwd') list = recursive_dirlist('../buildtools/wafsamba', '.', pattern='*.py') - cmd='PYTHONPATH=bin/python pydoctor --project-name=wafsamba --project-url=http://www.samba.org --make-html --docformat=restructuredtext' print(list) - for f in list: - cmd += ' --add-module %s' % f + cmd='PYTHONPATH=bin/python pydoctor --project-name=wafsamba --project-url=http://www.samba.org --make-html --docformat=restructuredtext' +\ + "".join(' --add-module %s' % f for f in list) print("Running: %s" % cmd) status = os.system(cmd) if os.WEXITSTATUS(status):