diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2014-06-02 02:53:01 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-10-14 06:44:06 +0200 |
commit | 0c2408531709eb720a2e96f72afbc2ecbfe6b06d (patch) | |
tree | 119c0fdcd4da3f53f32a77f2e0389057e1ca9030 /python/samba/provision/backend.py | |
parent | 9a014d265b4e134fb5cea12aaca88ba5eb91cc05 (diff) | |
download | samba-0c2408531709eb720a2e96f72afbc2ecbfe6b06d.tar.gz samba-0c2408531709eb720a2e96f72afbc2ecbfe6b06d.tar.xz samba-0c2408531709eb720a2e96f72afbc2ecbfe6b06d.zip |
Fix more pep8 issues in code I touched recently.
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Change-Id: I35f3204bdf5d00b3280d703427ded2fa2163a6f7
Diffstat (limited to 'python/samba/provision/backend.py')
-rw-r--r-- | python/samba/provision/backend.py | 16 |
1 files changed, 11 insertions, 5 deletions
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] |