summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2019-08-25 23:03:54 +0200
committerAndrew Bartlett <abartlet@samba.org>2019-09-21 20:50:17 +0000
commit89288c7e8398d86a24ea19a94908bc85a2664074 (patch)
tree8b6ab722a4ab75c5d61fd960c07e216a2faf971e /buildtools
parent432d9fd2214a4804a9cfefb9916e97efb9909c2c (diff)
downloadsamba-89288c7e8398d86a24ea19a94908bc85a2664074.tar.gz
samba_version.py: avoid inefficient string concatenations
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
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_version.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/buildtools/wafsamba/samba_version.py b/buildtools/wafsamba/samba_version.py
index f0e7b4d0caf..5df7ddbcb3d 100644
--- a/buildtools/wafsamba/samba_version.py
+++ b/buildtools/wafsamba/samba_version.py
@@ -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