Show More
@@ -2463,7 +2463,7 b' def _optimize(x, small):' | |||||
2463 | else: |
|
2463 | else: | |
2464 | w = 1 |
|
2464 | w = 1 | |
2465 | return w + wa, (op, x[1], ta) |
|
2465 | return w + wa, (op, x[1], ta) | |
2466 | return 1, x |
|
2466 | raise ValueError('invalid operator %r' % op) | |
2467 |
|
2467 | |||
2468 | def optimize(tree): |
|
2468 | def optimize(tree): | |
2469 | _weight, newtree = _optimize(tree, small=True) |
|
2469 | _weight, newtree = _optimize(tree, small=True) |
General Comments 0
You need to be logged in to leave comments.
Login now