Import reduce from functools since it was removed as a builtin in Python
- reduce was added to functools in Python 2.6. This was produced by
running futurize's stage1 lib2to3.fixes.fix_reduce.
| Paths 
 |  Differential  D67810  
[LNT] Python 3 support: import reduce from functools ClosedPublic Authored by thopre on Sep 20 2019, 1:29 AM. 
Details Summary Import reduce from functools since it was removed as a builtin in Python 
 running futurize's stage1 lib2to3.fixes.fix_reduce. 
Diff Detail 
 Event Timelinethopre added a parent revision: D67809: [LNT] Python 3 support: use Python 3 idioms.Sep 20 2019, 1:30 AM thopre added a child revision: D67811: [LNT] Python 3 support: Use absolute import by default.Sep 20 2019, 1:33 AM This revision is now accepted and ready to land.Sep 20 2019, 8:41 AM Closed by commit rL372477: [LNT] Python 3 support: import reduce from functools (authored by thopre).  ·  Explain WhySep 21 2019, 8:28 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 221179 lnt/trunk/lnt/util/stats.py
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||