[PATCH] D93117: LNT: Fix Perf profiling support
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 11 08:35:23 PST 2020
thopre added inline comments.
================
Comment at: lnt/testing/profile/perf.py:10-17
+ # Python 2
import cPerf
except Exception:
- pass
+ try:
+ # Python 3
+ from . import cPerf
+ except Exception:
----------------
Sorry I forgot to mention that the relative import syntax is available in Python 2.7. So you can just change the import cPerf into from . import cPerf and nothing else (i.e. 1 line change)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93117/new/
https://reviews.llvm.org/D93117
More information about the llvm-commits
mailing list