[lit] Remove (or allow specific) unused imports
authorBrian Gesiak <modocache@gmail.com>
Mon, 10 Oct 2016 01:22:06 +0000 (01:22 +0000)
committerBrian Gesiak <modocache@gmail.com>
Mon, 10 Oct 2016 01:22:06 +0000 (01:22 +0000)
commit11c48475c4cb33d78c72f24523eec6d4be5aac8e
treeda9e858b2e282bb9f204fc7ac80271c1e42c7e61
parent3a0f79fb190aac1f3f872aeb843a77081efe6750
[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
llvm/utils/lit/lit.py
llvm/utils/lit/lit/LitConfig.py
llvm/utils/lit/lit/__init__.py
llvm/utils/lit/lit/formats/__init__.py