1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

auth_log_winbind.py: avoid inefficient string concatenations

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Björn Jacke
2019-08-25 23:07:13 +02:00
committed by Bjoern Jacke
parent cf51f73e02
commit dd9e0f0ae1

View 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)