From bc0f510ef197cb19f77801ae43b33deb53e6391f Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Thu, 18 Jul 2019 19:17:16 +0200 Subject: fix all flake8 issues --- mesonbuild/compilers/compilers.py | 7 +++---- mesonbuild/interpreter.py | 4 ++-- 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 -- cgit v1.1