diff options
author | Björn Jacke <bj@sernet.de> | 2019-08-25 23:09:19 +0200 |
---|---|---|
committer | Bjoern Jacke <bjacke@samba.org> | 2019-09-24 12:22:45 +0000 |
commit | 5ad629dcb957e45637f3a71309fa51abd87b267d (patch) | |
tree | 92febd4bc310cf9cde06e40ee4b2b53593edbe1b /wscript | |
parent | b3b6b700c47ba771baf632b3a165106c21c9ae04 (diff) | |
download | samba-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-- | wscript | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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): |