Skip to content

Commit

Permalink
fixed ldap.schema.models.Entry.__contains__()
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 3e0ef81 commit 63fd67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/ldap/schema/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,8 @@ def update(self,dict):
for key in dict.keys():
self[key] = dict[key]

def __contains__(self,key):
return key in self
def __contains__(self,nameoroid):
return self._at2key(nameoroid) in self.data

def __getitem__(self,nameoroid):
return self.data[self._at2key(nameoroid)]
Expand Down

0 comments on commit 63fd67e

Please sign in to comment.