From ec90b1b40e1f610dfc1e2aa3ba91c0b27dde4f60 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 8 Jun 2010 00:21:00 +0400 Subject: s4 upgrade provision: Fix style in gen_dn_index Signed-off-by: Jelmer Vernooij --- source4/scripting/bin/upgradeprovision | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision index b7582d00fe..3289af2972 100755 --- a/source4/scripting/bin/upgradeprovision +++ b/source4/scripting/bin/upgradeprovision @@ -511,14 +511,13 @@ def add_missing_object(newsam_ldb, sam_ldb, dn, names, basedn, hash, index): sam_ldb.add(delta,["relax:0"]) return True - def gen_dn_index_hash(listMissing): """Generate a hash associating the DN to its creation order :param listMissing: List of DN :return: Hash with DN as keys and creation order as values""" hash = {} - for i in range(0,len(listMissing)): + for i in range(0, len(listMissing)): hash[str(listMissing[i]).lower()] = i return hash -- cgit