aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/lit/lit.py
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2016-10-10 01:22:06 +0000
committerBrian Gesiak <modocache@gmail.com>2016-10-10 01:22:06 +0000
commit11c48475c4cb33d78c72f24523eec6d4be5aac8e (patch)
treeda9e858b2e282bb9f204fc7ac80271c1e42c7e61 /llvm/utils/lit/lit.py
parent3a0f79fb190aac1f3f872aeb843a77081efe6750 (diff)
downloadllvm-11c48475c4cb33d78c72f24523eec6d4be5aac8e.zip
llvm-11c48475c4cb33d78c72f24523eec6d4be5aac8e.tar.gz
llvm-11c48475c4cb33d78c72f24523eec6d4be5aac8e.tar.bz2
[lit] Remove (or allow specific) unused imports
Summary: Using Python linter flake8 on the utils/lit reveals several linter warnings designated "F401: Unused import". Fix or silence these warnings. Some of these unused imports are legitimate, while some are part of lit's API. For example, users of lit expect to be able to access `lit.formats.ShTest` in their `lit.cfg`, despite the module hierarchy for that symbol actually being `lit.formats.shtest.ShTest`. To silence linter errors for these lines, include a "noqa" directive. Reviewers: echristo, delcypher, beanz, ddunbar Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D25407 llvm-svn: 283710
Diffstat (limited to 'llvm/utils/lit/lit.py')
-rwxr-xr-xllvm/utils/lit/lit.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/lit/lit.py b/llvm/utils/lit/lit.py
index 851063b..2c5ecfe1d 100755
--- a/llvm/utils/lit/lit.py
+++ b/llvm/utils/lit/lit.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
+from lit.main import main
+
if __name__=='__main__':
- import lit
- lit.main()
+ main()