summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-11-10 11:44:21 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2018-11-19 21:07:37 +0200
commita33acd31dad99be9124022d6293bacaa9d2045fb (patch)
treecbbf1382666c1246f5d7825a1bed465874ce4dea
parentd118e3ad4c21946dc3fc204f6649c424eedabb90 (diff)
downloadmeson-a33acd31dad99be9124022d6293bacaa9d2045fb.tar.gz
Fix flake8 'imported but unused' reports
$ flake8 | grep F401 ./run_unittests.py:43:1: F401 'mesonbuild.mesonlib.is_linux' imported but unused ./mesonbuild/compilers/c.py:32:1: F401 '.compilers.CompilerType' imported but unused ./mesonbuild/compilers/cpp.py:23:1: F401 '.compilers.CompilerType' imported but unused
-rw-r--r--mesonbuild/compilers/c.py1
-rw-r--r--mesonbuild/compilers/cpp.py1
-rwxr-xr-xrun_unittests.py2
3 files changed, 1 insertions, 3 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index e5b89ce7c..88ad7b6d8 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -30,7 +30,6 @@ from ..mesonlib import (
from .c_function_attributes import C_FUNC_ATTRIBUTES
from .compilers import (
- CompilerType,
get_largefile_args,
gnu_winlibs,
msvc_winlibs,
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 7d2000e1c..87371c0a7 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -21,7 +21,6 @@ from ..mesonlib import MesonException, version_compare
from .c import CCompiler, VisualStudioCCompiler, ClangClCCompiler
from .compilers import (
- CompilerType,
gnu_winlibs,
msvc_winlibs,
ClangCompiler,
diff --git a/run_unittests.py b/run_unittests.py
index e149dedf6..bf912f2cb 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -42,7 +42,7 @@ import mesonbuild.modules.gnome
from mesonbuild.interpreter import Interpreter, ObjectHolder
from mesonbuild.mesonlib import (
is_windows, is_osx, is_cygwin, is_dragonflybsd, is_openbsd, is_haiku,
- is_linux, windows_proof_rmtree, python_command, version_compare,
+ windows_proof_rmtree, python_command, version_compare,
BuildDirLock, Version
)
from mesonbuild.environment import detect_ninja