From 83c03e43465ac0a88a7775ed088a2e674e433cf8 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 10 May 2020 09:49:31 +0200 Subject: plots: fix _eval_with_stat not really evaluating the ast node --- allocbench/plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allocbench/plots.py b/allocbench/plots.py index a2a17d4..2d2bc8c 100644 --- a/allocbench/plots.py +++ b/allocbench/plots.py @@ -125,7 +125,7 @@ def _eval_with_stat(bench, evaluation, alloc, perm, stat): node = ast.parse(expr, mode='eval') try: - return _eval(node) + return _eval(node.body) except TypeError: print_debug(traceback.format_exc()) print_warn( -- cgit v1.2.3