Remove reference to compute in Tree

This commit is contained in:
Bertrand Benjamin 2018-03-12 20:01:52 +03:00
parent 25f791bd81
commit 832946ed49

View File

@ -1,5 +1,3 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8 # vim:fenc=utf-8
# #
# Copyright © 2017 lafrite <lafrite@Poivre> # Copyright © 2017 lafrite <lafrite@Poivre>
@ -371,8 +369,7 @@ class Tree(object):
('+', (('*', (3, 4)), 2)) ('+', (('*', (3, 4)), 2))
>>> assert t.apply(to_nested) == nested_par >>> assert t.apply(to_nested) == nested_par
>>> from .compute import compute >>> t.apply(lambda n, l, r: eval(str(l) + n + str(r)))
>>> t.apply(compute)
14 14
""" """