Feat(Tree): Add exclude_nodes in balance to trees
This commit is contained in:
@@ -106,7 +106,10 @@ class Expression(object):
|
||||
"""
|
||||
if optimize:
|
||||
try:
|
||||
self._tree = self._tree.balance()
|
||||
# TODO: need to test exclude_nodes |ven. oct. 5 08:51:02 CEST 2018
|
||||
self._tree = self._tree.balance(
|
||||
exclude_nodes=["\\", "**"]
|
||||
)
|
||||
except AttributeError:
|
||||
pass
|
||||
try:
|
||||
|
Reference in New Issue
Block a user