Skip to content

Commit

Permalink
Ease the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Mar 8, 2022
1 parent 5390514 commit c5e0173
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/BTrees/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,8 +995,7 @@ def has_key(self, key):
index = self._search(key)
if index < 0:
return False
r = self._data[index].child.has_key(key)
return bool(r and r + 1)
return self._data[index].child.has_key(key)

def keys(self, min=_marker, max=_marker,
excludemin=False, excludemax=False,
Expand Down

0 comments on commit c5e0173

Please sign in to comment.