summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2019-08-25 23:09:19 +0200
committerBjoern Jacke <bjacke@samba.org>2019-09-24 12:22:45 +0000
commit5ad629dcb957e45637f3a71309fa51abd87b267d (patch)
tree92febd4bc310cf9cde06e40ee4b2b53593edbe1b /wscript
parentb3b6b700c47ba771baf632b3a165106c21c9ae04 (diff)
downloadsamba-5ad629dcb957e45637f3a71309fa51abd87b267d.tar.gz
wscript: avoid inefficient string concatenations
Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files 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):