[PATCH] D67795: [LNT] Python 3 support: Fix implicit package-relative imports

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 22:24:27 PDT 2019


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

This patch replaces implicit package-relative imports with explicitly relative imports and makes further adjustments necessary to correct for circular import issues encountered when running with Python 2.7 following the initial changes.

Finally, `from __future__ import absolute_import` is added to all of the files changed as part of this exercise.

These changes help with running tests (without result submission) with Python 3.


https://reviews.llvm.org/D67795

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67795.220948.patch
Type: text/x-patch
Size: 4698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190920/0793026e/attachment.bin>


More information about the llvm-commits mailing list