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:
committed by
Bjoern Jacke
parent
cf51f73e02
commit
dd9e0f0ae1
@ -94,8 +94,7 @@ class AuthLogTestsWinbind(AuthLogTestBase, BlackboxTestCase):
|
|||||||
msgs = list(filter(is_sam_logon, self.dc_msgs))
|
msgs = list(filter(is_sam_logon, self.dc_msgs))
|
||||||
if msgs:
|
if msgs:
|
||||||
for m in msgs:
|
for m in msgs:
|
||||||
m += "\n"
|
os.write(w1, get_bytes(m+"\n"))
|
||||||
os.write(w1, get_bytes(m))
|
|
||||||
else:
|
else:
|
||||||
os.write(w1, get_bytes("None\n"))
|
os.write(w1, get_bytes("None\n"))
|
||||||
os.close(w1)
|
os.close(w1)
|
||||||
|
Reference in New Issue
Block a user