summaryrefslogtreecommitdiffstats
path: root/bench/bench.py
diff options
context:
space:
mode:
Diffstat (limited to 'bench/bench.py')
-rw-r--r--bench/bench.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/bench.py b/bench/bench.py
index 3f7dbc6..7a4083b 100644
--- a/bench/bench.py
+++ b/bench/bench.py
@@ -95,7 +95,8 @@ try:
FunctionList
except NameError:
function_names = sorted([x for x in list(locals().keys()) if x[:4] == FunctionPrefix])
- l = [locals()[f] for f in function_names]
+ lvars = locals()
+ l = [lvars[f] for f in function_names]
FunctionList = [f for f in l if isinstance(f, types.FunctionType)]
IterationList = [None] * Iterations