[PATCH] D67811: [LNT] Python 3 support: Use absolute import by default

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


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

Forces module import to be absolute by default on Python 2 since this is
the default for Python 3. Adapts relative imports to use the relative
import symtax 'from . import foo' or 'from .pkg import foo'. This was
produced by running futurize's stage1
libfuturize.fixes.fix_absolute_import.

Note to reviewers: I'm only putting this one on phabricator because the
rest of my patch series depends on it. Please review D67795 <https://reviews.llvm.org/D67795> from
Hubert Tong instead, I'll rebase my patch series on top of that patch
once committed.


https://reviews.llvm.org/D67811

Files:
  lnt/external/stats/pstat.py
  lnt/external/stats/stats.py
  lnt/formats/__init__.py
  lnt/lnttool/__init__.py
  lnt/server/db/testsuite.py
  lnt/server/db/testsuitedb.py
  lnt/testing/profile/__init__.py
  lnt/testing/profile/perf.py
  lnt/testing/profile/profilev2impl.py
  lnt/tests/nt.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67811.220969.patch
Type: text/x-patch
Size: 8972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190920/8aa45b8c/attachment.bin>


More information about the llvm-commits mailing list