From aa879b7f0cd3ed36e87ee7699e060c48d66f6b67 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sun, 13 May 2018 10:36:58 -0400 Subject: Fix issues found by flake8 --- mesonbuild/compilers/__init__.py | 2 ++ mesonbuild/compilers/c.py | 2 +- mesonbuild/compilers/compilers.py | 1 - mesonbuild/compilers/cpp.py | 1 - mesonbuild/compilers/fortran.py | 2 -- 5 files changed, 3 insertions(+), 5 deletions(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/__init__.py b/mesonbuild/compilers/__init__.py index 288b3f5..6b31cca 100644 --- a/mesonbuild/compilers/__init__.py +++ b/mesonbuild/compilers/__init__.py @@ -41,6 +41,8 @@ __all__ = [ 'sanitizer_compile_args', 'sort_clike', + 'ArmCCompiler', + 'ArmCPPCompiler', 'CCompiler', 'ClangCCompiler', 'ClangCompiler', diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index e14d3d8..90105a0 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import subprocess, os.path, tempfile +import subprocess, os.path from .. import mlog from .. import coredata diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index fcb658b..b61398f 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1281,7 +1281,6 @@ class ElbrusCompiler(GnuCompiler): break return paths - class ClangCompiler: def __init__(self, clang_type): self.id = 'clang' diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 22f3d67..c3bb59d 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -14,7 +14,6 @@ import os.path -from .. import mlog from .. import coredata from ..mesonlib import version_compare diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index 16a89b2..d0b538a 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os.path, subprocess - from .c import CCompiler from .compilers import ( ICC_STANDARD, -- cgit v1.1