diff options
author | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-09-21 15:30:38 +0000 |
---|---|---|
committer | Thomas Preud'homme <thomasp@graphcore.ai> | 2019-09-21 15:30:38 +0000 |
commit | 77b6d60394e9a35fe8581a50d140fab7ab8cb9f8 (patch) | |
tree | c79cf105d0fe172e6b8fa6ab9396f89946899901 | |
parent | 8cdc041c6aab87f94e4f5cee241e5064449f7c9c (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@372477 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lnt/util/stats.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lnt/util/stats.py b/lnt/util/stats.py index edce25f..6ea1f7d 100644 --- a/lnt/util/stats.py +++ b/lnt/util/stats.py @@ -1,6 +1,7 @@ from __future__ import division import math from lnt.external.stats.stats import mannwhitneyu as mannwhitneyu_large +from functools import reduce def safe_min(values): |