Commit 82205803 authored by Vincent Pelletier's avatar Vincent Pelletier

BTreeData: Trivial simplification.

parent 317eb781
......@@ -71,8 +71,7 @@ class BTreeData(Persistent):
# writes.
if lower_key < offset:
chunk = tree[lower_key]
value_len = len(chunk.value)
if lower_key + value_len > offset:
if lower_key + len(chunk.value) > offset:
key = lower_key
buf = chunk.value[:offset - key] + buf
try:
......
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