Commit 184fbbc7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 164975ac
...@@ -148,11 +148,16 @@ def IterAllStructs(keys, maxdepth, maxsplit): ...@@ -148,11 +148,16 @@ def IterAllStructs(keys, maxdepth, maxsplit):
keyv.sort() keyv.sort()
# initial [lo, hi) covering keys with +-1 # initial [lo, hi) covering keys with +-1
klo = -inf #klo = -inf
khi = +inf #khi = +inf
if len(keyv) > 0: if len(keyv) > 0:
klo = keyv[0] - 1 klo = keyv[0] - 1
khi = keyv[-1] + 1 + 1 # hi is ")", not "]" khi = keyv[-1] + 1 + 1 # hi is ")", not "]"
else:
# XXX ok? (should be -inf,+inf)
klo = 0
khi = 5
for tree in _iterAllStructs(klo, khi, keyv, maxdepth, maxsplit): for tree in _iterAllStructs(klo, khi, keyv, maxdepth, maxsplit):
yield tree yield tree
......
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