Skip to content

Commit 376f304

Browse files
author
stroeder
committed
ldap.cidict: avoid using .has_key()
1 parent 95a9dc4 commit 376f304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/ldap/cidict.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def strlist_minus(a,b):
7171
result = [
7272
elt
7373
for elt in a
74-
if not temp.has_key(elt)
74+
if elt not in temp
7575
]
7676
return result
7777

@@ -86,7 +86,7 @@ def strlist_intersection(a,b):
8686
result = [
8787
temp[elt]
8888
for elt in b
89-
if temp.has_key(elt)
89+
if elt in temp
9090
]
9191
return result
9292

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy