Feat(Tree): Add exclude_nodes in balance to trees

This commit is contained in:
2018-10-05 08:52:04 +02:00
parent 948402755a
commit 9e0a703e98
2 changed files with 33 additions and 8 deletions

View File

@@ -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: