diff options
author | Björn Jacke <bj@sernet.de> | 2019-08-25 23:07:13 +0200 |
---|---|---|
committer | Bjoern Jacke <bjacke@samba.org> | 2019-09-24 12:22:44 +0000 |
commit | dd9e0f0ae1cca23920883a0e04fe5862663e400e (patch) | |
tree | 25b913f76cf3f548be1d325e9c7247a15b9e9661 /python | |
parent | cf51f73e02cab85f508bcbef362ff75a7ae18d7f (diff) | |
download | samba-dd9e0f0ae1cca23920883a0e04fe5862663e400e.tar.gz |
auth_log_winbind.py: avoid inefficient string concatenations
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/tests/auth_log_winbind.py | 3 |
1 files changed, 1 insertions, 2 deletions
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) |