summaryrefslogtreecommitdiffstats
path: root/python/samba/schema.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2014-06-02 01:33:43 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-10-14 06:44:06 +0200
commitbbaa739bbda4685fa5e38ea0d939496398e11ebf (patch)
tree98667c3fdf178377e86a371014e2fc23cce354cb /python/samba/schema.py
parentbcf298e7eca07a8869d184ad44c01232a11ba9ea (diff)
downloadsamba-bbaa739bbda4685fa5e38ea0d939496398e11ebf.tar.gz
samba-bbaa739bbda4685fa5e38ea0d939496398e11ebf.tar.xz
samba-bbaa739bbda4685fa5e38ea0d939496398e11ebf.zip
Remove remaining instance of pep8 E211 (too many spaces before operator).
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Change-Id: I9af3bf582bba8fc1094addb12cd0a5ce04406b5b
Diffstat (limited to 'python/samba/schema.py')
-rw-r--r--python/samba/schema.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/schema.py b/python/samba/schema.py
index 5c8f506f26..4e6381306c 100644
--- a/python/samba/schema.py
+++ b/python/samba/schema.py
@@ -160,7 +160,7 @@ def get_linked_attributes(schemadn,schemaldb):
attrs = ["linkID", "lDAPDisplayName"]
res = schemaldb.search(expression="(&(linkID=*)(!(linkID:1.2.840.113556.1.4.803:=1))(objectclass=attributeSchema)(attributeSyntax=2.5.5.1))", base=schemadn, scope=SCOPE_ONELEVEL, attrs=attrs)
attributes = {}
- for i in range (0, len(res)):
+ for i in range(0, len(res)):
expression = "(&(objectclass=attributeSchema)(linkID=%d)(attributeSyntax=2.5.5.1))" % (int(res[i]["linkID"][0])+1)
target = schemaldb.searchone(basedn=schemadn,
expression=expression,
@@ -178,7 +178,7 @@ def get_dnsyntax_attributes(schemadn,schemaldb):
base=schemadn, scope=SCOPE_ONELEVEL,
attrs=["linkID", "lDAPDisplayName"])
attributes = []
- for i in range (0, len(res)):
+ for i in range(0, len(res)):
attributes.append(str(res[i]["lDAPDisplayName"]))
return attributes