]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
wscript_build: string concatenation efficiency cleanup
authorBjörn Jacke <bj@sernet.de>
Fri, 23 Aug 2019 00:19:20 +0000 (02:19 +0200)
committerBjoern Jacke <bjacke@samba.org>
Tue, 24 Sep 2019 13:40:21 +0000 (13:40 +0000)
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-User(master): Björn Jacke <bjacke@samba.org>
Autobuild-Date(master): Tue Sep 24 13:40:21 UTC 2019 on sn-devel-184

docs-xml/wscript_build

index f207e51ff212117df7ab48fe5c87f3420423d60d..b85309d4eade4faabf87086d7816d641c22136c9 100644 (file)
@@ -115,26 +115,22 @@ def smbdotconf_generate_parameter_list(task):
     articles = task.inputs
 
     entities = bld.pathconfig_entities()
-    t = "<!DOCTYPE section [\n"
-
-    for entity in entities:
-        t += "%s\n" % entity
 
     # We need this if we build with Heimdal
     mit_kdc_path = '"/usr/sbin/krb5kdc"'
-
     # The MIT krb5kdc path is set if we build with MIT Kerberos
     if bld.CONFIG_SET('MIT_KDC_PATH'):
         mit_kdc_path = bld.CONFIG_GET('MIT_KDC_PATH')
 
-    t += "<!ENTITY pathconfig.MITKDCPATH   %s>\n" % mit_kdc_path
-
-    t += "]>\n"
-    t += "<section>\n"
-    for article in articles:
-        t += article.read()
+    t = "<!DOCTYPE section [\n" +\
+        "\n".join(entities) +\
+        "\n" +\
+        "<!ENTITY pathconfig.MITKDCPATH   " + mit_kdc_path + ">\n" +\
+        "]>\n" +\
+        "<section>\n" +\
+        "".join(art.read() for art in articles) +\
+       "</section>\n"
 
-    t += "</section>\n"
     save_file(parameter_all, t , create_dir=True)
     return 0