Skip to content

Commit 0bac267

Browse files
author
Thomas Preud'homme
committed
[LNT] Python 3 support: import reduce from functools
Import reduce from functools since it was removed as a builtin in Python 3. reduce was added to functools in Python 2.6. This was produced by running futurize's stage1 lib2to3.fixes.fix_reduce. Reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls Reviewed By: hubert.reinterpretcast Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D67810 llvm-svn: 372477
1 parent 82bfa4f commit 0bac267

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lnt/util/stats.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import division
22
import math
33
from lnt.external.stats.stats import mannwhitneyu as mannwhitneyu_large
4+
from functools import reduce
45

56

67
def safe_min(values):

0 commit comments

Comments
 (0)