diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 13:15:09 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 13:15:09 +0200 |
commit | 8f383fc5c8ca7190c719e58473d609cf9dce9444 (patch) | |
tree | 554ae00f1869d442baec21ccdb7dc0980062a52a /source4/scripting/python | |
parent | 1e35ec43f2dcf08446bdeb62aa6a03827666b154 (diff) | |
download | samba-8f383fc5c8ca7190c719e58473d609cf9dce9444.tar.gz samba-8f383fc5c8ca7190c719e58473d609cf9dce9444.tar.bz2 samba-8f383fc5c8ca7190c719e58473d609cf9dce9444.zip |
s4-python: Remove more unused imports, fix use of sets in upgradehelpers.
Diffstat (limited to 'source4/scripting/python')
-rwxr-xr-x | source4/scripting/python/samba/upgradehelpers.py | 4 |
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) |