summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/upgradehelpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python/samba/upgradehelpers.py')
-rwxr-xr-xsource4/scripting/python/samba/upgradehelpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/upgradehelpers.py b/source4/scripting/python/samba/upgradehelpers.py
index 7c6afaec5b..58907458ed 100755
--- a/source4/scripting/python/samba/upgradehelpers.py
+++ b/source4/scripting/python/samba/upgradehelpers.py
@@ -506,8 +506,8 @@ def get_diff_sddls(refsddl, cursddl):
for elem in c_ref["aces"]:
h_ref.add(elem)
- for k in h_ref:
- if h_new.has_key(k):
+ for k in set(h_ref):
+ if k in h_new:
h_new.remove(k)
h_ref.remove(k)