From af116fba83e8035ee7f9cee1dec0dee6306da8cf Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 26 May 2020 13:45:32 +0100 Subject: [PATCH] whoops --- src/nmutil/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nmutil/util.py b/src/nmutil/util.py index 3c708bd..3aec9f9 100644 --- a/src/nmutil/util.py +++ b/src/nmutil/util.py @@ -24,4 +24,5 @@ def treereduce(tree, op, fn): if len(tree) == 2: return op(fn(tree[0]), fn(tree[1])) s = len(tree) // 2 # splitpoint - return treereduce(op(tree[:s], op, fn), treereduce(tree[s:], op, fn)) + return op(treereduce(tree[:s], op, fn), + treereduce(tree[s:], op, fn)) -- 2.30.2