]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba_version.py: avoid inefficient string concatenations
authorBjörn Jacke <bj@sernet.de>
Sun, 25 Aug 2019 21:03:54 +0000 (23:03 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 21 Sep 2019 20:50:17 +0000 (20:50 +0000)
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Sep 21 20:50:17 UTC 2019 on sn-devel-184

buildtools/wafsamba/samba_version.py

index f0e7b4d0caf0e2ae8ad01c7e5d00e18ff14bcc52..5df7ddbcb3df93ada962a6d6e4ba1a1c176a65f9 100644 (file)
@@ -173,10 +173,10 @@ also accepted as dictionary entries here
             self.STRING_WITH_NICKNAME = self.STRING
 
     def __str__(self):
-        string="/* Autogenerated by waf */\n"
-        string+="#define SAMBA_VERSION_MAJOR %u\n" % self.MAJOR
-        string+="#define SAMBA_VERSION_MINOR %u\n" % self.MINOR
-        string+="#define SAMBA_VERSION_RELEASE %u\n" % self.RELEASE
+        string="/* Autogenerated by waf */\n" +\
+                "#define SAMBA_VERSION_MAJOR %u\n" % self.MAJOR +\
+                "#define SAMBA_VERSION_MINOR %u\n" % self.MINOR +\
+                "#define SAMBA_VERSION_RELEASE %u\n" % self.RELEASE
         if self.REVISION is not None:
             string+="#define SAMBA_VERSION_REVISION %u\n" % self.REVISION