Skip to content

Commit

Permalink
ldap.cidict: avoid using .has_key()
Browse files Browse the repository at this point in the history
  • Loading branch information
stroeder authored and Petr Viktorin committed Nov 22, 2017
1 parent cdd3a41 commit 8bded9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/ldap/cidict.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 8bded9c

Please sign in to comment.