From 0c2408531709eb720a2e96f72afbc2ecbfe6b06d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 2 Jun 2014 02:53:01 +0200 Subject: Fix more pep8 issues in code I touched recently. Signed-Off-By: Jelmer Vernooij Reviewed-by: Andrew Bartlett Change-Id: I35f3204bdf5d00b3280d703427ded2fa2163a6f7 --- python/samba/provision/backend.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'python/samba/provision') diff --git a/python/samba/provision/backend.py b/python/samba/provision/backend.py index cffdea7218..17572efc76 100644 --- a/python/samba/provision/backend.py +++ b/python/samba/provision/backend.py @@ -369,13 +369,16 @@ class OpenLDAPBackend(LDAPBackend): memberof_config += read_and_sub_file( setup_path("memberof.conf"), { "MEMBER_ATTR": att, - "MEMBEROF_ATTR" : lnkattr[att] }) + "MEMBEROF_ATTR": lnkattr[att]}) - refint_config = read_and_sub_file(setup_path("refint.conf"), - { "LINK_ATTRS" : refint_attributes}) + refint_config = read_and_sub_file( + setup_path("refint.conf"), {"LINK_ATTRS": refint_attributes}) attrs = ["linkID", "lDAPDisplayName"] - res = self.schema.ldb.search(expression="(&(objectclass=attributeSchema)(searchFlags:1.2.840.113556.1.4.803:=1))", base=self.names.schemadn, scope=SCOPE_ONELEVEL, attrs=attrs) + res = self.schema.ldb.search( + expression="(&(objectclass=attributeSchema)" + "(searchFlags:1.2.840.113556.1.4.803:=1))", + base=self.names.schemadn, scope=SCOPE_ONELEVEL, attrs=attrs) index_config = "" for i in range(0, len(res)): index_attr = res[i]["lDAPDisplayName"][0] @@ -734,7 +737,10 @@ class FDSBackend(LDAPBackend): f.close() attrs = ["lDAPDisplayName"] - res = self.schema.ldb.search(expression="(&(objectclass=attributeSchema)(searchFlags:1.2.840.113556.1.4.803:=1))", base=self.names.schemadn, scope=SCOPE_ONELEVEL, attrs=attrs) + res = self.schema.ldb.search( + expression="(&(objectclass=attributeSchema)" + "(searchFlags:1.2.840.113556.1.4.803:=1))", + base=self.names.schemadn, scope=SCOPE_ONELEVEL, attrs=attrs) for i in range(0, len(res)): attr = res[i]["lDAPDisplayName"][0] -- cgit