From 8bded9cfd8a0fc1750c9d56a8f7abc083a47adb2 Mon Sep 17 00:00:00 2001 From: stroeder Date: Sat, 18 Nov 2017 23:06:52 +0000 Subject: [PATCH] ldap.cidict: avoid using .has_key() --- Lib/ldap/cidict.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/ldap/cidict.py b/Lib/ldap/cidict.py index d36f8c3..07832ef 100644 --- a/Lib/ldap/cidict.py +++ b/Lib/ldap/cidict.py @@ -71,7 +71,7 @@ def strlist_minus(a,b): result = [ elt for elt in a - if not temp.has_key(elt) + if elt not in temp ] return result @@ -86,7 +86,7 @@ def strlist_intersection(a,b): result = [ temp[elt] for elt in b - if temp.has_key(elt) + if elt in temp ] return result