1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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
This commit is contained in:
Björn Jacke 2019-08-25 23:03:54 +02:00 committed by Andrew Bartlett
parent 432d9fd221
commit 89288c7e83

View 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