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

.

parent 164975ac
......@@ -148,11 +148,16 @@ def IterAllStructs(keys, maxdepth, maxsplit):
keyv.sort()
# initial [lo, hi) covering keys with +-1
klo = -inf
khi = +inf
#klo = -inf
#khi = +inf
if len(keyv) > 0:
klo = keyv[0] - 1
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):
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