[PATCH] D67809: [LNT] Python 3 support: use Python 3 idioms

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


thopre created this revision.
thopre added reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls.

Replace Python 2 idioms for their Python 3 counterparts. These includes:

- replace calls to X.sort() by calls to sorted(X)
- replace while 1 by while True

This was produced by running futurize's stage1 lib2to3.fixes.fix_idioms.


https://reviews.llvm.org/D67809

Files:
  lnt/external/stats/pstat.py
  lnt/external/stats/stats.py
  lnt/server/db/testsuitedb.py
  lnt/server/ui/util.py
  lnt/server/ui/views.py
  lnt/util/stats.py
  lnt/util/wsgi_restart.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67809.220967.patch
Type: text/x-patch
Size: 7372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190920/87036e3c/attachment.bin>


More information about the llvm-commits mailing list