From: Björn Jacke Date: Sun, 25 Aug 2019 21:07:13 +0000 (+0200) Subject: auth_log_winbind.py: avoid inefficient string concatenations X-Git-Tag: talloc-2.3.1~718 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd9e0f0ae1cca23920883a0e04fe5862663e400e;p=thirdparty%2Fsamba.git auth_log_winbind.py: avoid inefficient string concatenations Signed-off-by: Bjoern Jacke Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/auth_log_winbind.py b/python/samba/tests/auth_log_winbind.py index a390197fe7f..4f4beff1e32 100644 --- a/python/samba/tests/auth_log_winbind.py +++ b/python/samba/tests/auth_log_winbind.py @@ -94,8 +94,7 @@ class AuthLogTestsWinbind(AuthLogTestBase, BlackboxTestCase): msgs = list(filter(is_sam_logon, self.dc_msgs)) if msgs: for m in msgs: - m += "\n" - os.write(w1, get_bytes(m)) + os.write(w1, get_bytes(m+"\n")) else: os.write(w1, get_bytes("None\n")) os.close(w1)