Commit 0d2498df authored by Jim Fulton's avatar Jim Fulton

simplify comparison

Cuz the complicated version was wrong, in addition to being complicated :)
parent ecccd60f
......@@ -113,7 +113,8 @@ class _BucketBase(_Base):
k = keys[i]
if k is key or k == key:
return i
if k is None or (key is not None and k < key):
if compare(k, key) < 0:
low = i + 1
else:
high = i
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment