diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-07-18 19:17:16 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-07-18 23:43:29 +0300 |
commit | bc0f510ef197cb19f77801ae43b33deb53e6391f (patch) | |
tree | a287afa3bc8e7ff8067a69364c91ef00dd332c8f /mesonbuild | |
parent | 76b1f4f8cbca916d7b4798f5b13907b1769117da (diff) | |
download | meson-bc0f510ef197cb19f77801ae43b33deb53e6391f.zip meson-bc0f510ef197cb19f77801ae43b33deb53e6391f.tar.gz meson-bc0f510ef197cb19f77801ae43b33deb53e6391f.tar.bz2 |
fix all flake8 issues
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 7 | ||||
-rw-r--r-- | mesonbuild/interpreter.py | 4 | ||||
-rw-r--r-- | mesonbuild/scripts/dist.py | 1 |
3 files changed, 5 insertions, 7 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 76c5c5e..71d96d4 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -12,9 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -import abc, contextlib, enum, os.path, re, tempfile, shlex -from typing import List, Optional, Tuple -from pathlib import Path +import contextlib, enum, os.path, re, tempfile, shlex +from typing import Optional, Tuple from ..linkers import StaticLinker from .. import coredata @@ -22,7 +21,7 @@ from .. import mlog from .. import mesonlib from ..mesonlib import ( EnvironmentException, MachineChoice, MesonException, OrderedSet, - version_compare, Popen_safe + Popen_safe ) from ..envconfig import ( Properties, diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index fd94251..e22a168 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -21,7 +21,7 @@ from . import optinterpreter from . import compilers from .wrap import wrap, WrapMode from . import mesonlib -from .mesonlib import FileMode, MachineChoice, PerMachine, Popen_safe, listify, extract_as_list, has_path_sep +from .mesonlib import FileMode, MachineChoice, Popen_safe, listify, extract_as_list, has_path_sep from .dependencies import ExternalProgram from .dependencies import InternalDependency, Dependency, NotFoundDependency, DependencyException from .interpreterbase import InterpreterBase @@ -40,7 +40,7 @@ from collections import namedtuple from itertools import chain from pathlib import PurePath import functools -from typing import Sequence, List, Union, Optional, Iterator, Dict, Any +from typing import Sequence, List, Union, Optional, Dict, Any import importlib diff --git a/mesonbuild/scripts/dist.py b/mesonbuild/scripts/dist.py index 1a62c70..e697890 100644 --- a/mesonbuild/scripts/dist.py +++ b/mesonbuild/scripts/dist.py @@ -21,7 +21,6 @@ import subprocess import pickle import hashlib import tarfile, zipfile -import tempfile from glob import glob from mesonbuild.environment import detect_ninja from mesonbuild.mesonlib import windows_proof_rmtree |