]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
posixacl.py: avoid inefficient string concatenations
authorBjörn Jacke <bj@sernet.de>
Sun, 25 Aug 2019 21:07:48 +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: Matthias Dieter Wallnöfer <mdw@samba.org>
python/samba/tests/posixacl.py

index 7e1fb3ec55e19fb754a48c8db744e135a089ee35..0ba3dc50089cd9589ac31acf4d092ba33f7d8cc8 100644 (file)
@@ -61,8 +61,8 @@ class PosixAclMappingTests(SmbdBaseTests):
     def print_posix_acl(self, posix_acl):
         aclstr = ""
         for entry in posix_acl.acl:
-            aclstr += "a_type: %d\n" % entry.a_type
-            aclstr += "a_perm: %o\n" % entry.a_perm
+            aclstr += "a_type: %d\n" % entry.a_type +\
+                      "a_perm: %o\n" % entry.a_perm
             if entry.a_type == smb_acl.SMB_ACL_USER:
                 aclstr += "uid: %d\n" % entry.info.uid
             if entry.a_type == smb_acl.SMB_ACL_GROUP: