]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth_log_winbind.py: avoid inefficient string concatenations
authorBjörn Jacke <bj@sernet.de>
Sun, 25 Aug 2019 21:07:13 +0000 (23:07 +0200)
committerBjoern Jacke <bjacke@samba.org>
Tue, 24 Sep 2019 12:22:44 +0000 (12:22 +0000)
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/auth_log_winbind.py

index a390197fe7f6eb0d91b9ff73207d2d083d43cfc5..4f4beff1e32f14d3063641265113a3cc9be01b6a 100644 (file)
@@ -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)