This is an archive of the discontinued LLVM Phabricator instance.

[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

  1. reduce was added to functools in Python 2.6. This was produced by

running futurize's stage1 lib2to3.fixes.fix_reduce.

Diff Detail

Repository
rL LLVM

Event Timeline

thopre created this revision.Sep 20 2019, 1:29 AM
This revision is now accepted and ready to land.Sep 20 2019, 8:41 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2019, 8:28 AM