Commit 349bcaee authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 17bcbc1a
...@@ -152,7 +152,8 @@ def iterAllStructPermutations(keys, maxdepth, maxsplit): ...@@ -152,7 +152,8 @@ def iterAllStructPermutations(keys, maxdepth, maxsplit):
klo = keyv[0] - 1 klo = keyv[0] - 1
khi = keyv[-1] + 1 + 1 # hi is ")", not "]" khi = keyv[-1] + 1 + 1 # hi is ")", not "]"
yield from _iterAllStructPermutations(klo, khi, keyv, maxdepth, maxsplit) for tree in _iterAllStructPermutations(klo, khi, keyv, maxdepth, maxsplit):
yield tree
def _iterAllStructPermutations(klo, khi, keyv, maxdepth, maxsplit): def _iterAllStructPermutations(klo, khi, keyv, maxdepth, maxsplit):
...@@ -160,7 +161,7 @@ def _iterAllStructPermutations(klo, khi, keyv, maxdepth, maxsplit): ...@@ -160,7 +161,7 @@ def _iterAllStructPermutations(klo, khi, keyv, maxdepth, maxsplit):
# XXX assert keyv sorted, in [klo, khi) # XXX assert keyv sorted, in [klo, khi)
for nsplit in range(0, maxsplit): for nsplit in range(0, maxsplit):
for ksplitv in _iterSplitByN(klo, khi, nsplit) for ksplitv in _iterSplitByN(klo, khi, nsplit):
# child_i # child_i
xlo, xhi xlo, xhi
......
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