[PATCH] D67821: [LNT] Python 3 support: use Python 2's division behavior

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 20 01:42:35 PDT 2019


thopre created this revision.
thopre added reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls.
thopre added a parent revision: D67820: [LNT] Python 3 support: get rid of calls to cmp builtin.
thopre added a child revision: D67822: [LNT] Python 3 support: adapt to removal of execfile.

Adapt all divisions to use a call to old_div to maintain Python 2's
division behavior in legacy code. Also import Python 3's division
behavior by default. This was produced by running futurize's stage2
libfuturize.fixes.fix_division_safe.


https://reviews.llvm.org/D67821

Files:
  examples/functions.py
  lnt/external/stats/pstat.py
  lnt/external/stats/stats.py
  lnt/server/db/rules/rule_update_profile_stats.py
  lnt/server/reporting/analysis.py
  lnt/server/reporting/dailyreport.py
  lnt/server/reporting/summaryreport.py
  lnt/server/ui/util.py
  lnt/server/ui/views.py
  requirements.client.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67821.220980.patch
Type: text/x-patch
Size: 38225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190920/cdddf666/attachment.bin>


More information about the llvm-commits mailing list