diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-05 00:03:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-05 00:03:34 +0200 |
commit | 0744601fda65c2cd3e02c6705533493ed7b4e501 (patch) | |
tree | 5dcbc8401a2ef94c723fce46c0d2e1899ed42adf /mesonbuild/modules | |
parent | 80b101d5f376835e3f31604797e98a5a9f3b2fd3 (diff) | |
parent | 390333a18dfa1d8ec8fefe25f638902700ddb82e (diff) | |
download | meson-0744601fda65c2cd3e02c6705533493ed7b4e501.zip meson-0744601fda65c2cd3e02c6705533493ed7b4e501.tar.gz meson-0744601fda65c2cd3e02c6705533493ed7b4e501.tar.bz2 |
Merge pull request #3171 from jon-turney/flake8
Fix flake8 issues
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/python3.py | 1 | ||||
-rw-r--r-- | mesonbuild/modules/unstable_icestorm.py | 13 |
2 files changed, 6 insertions, 8 deletions
diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py index 989e839..9fd9f80 100644 --- a/mesonbuild/modules/python3.py +++ b/mesonbuild/modules/python3.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import sys import sysconfig from .. import mesonlib, dependencies diff --git a/mesonbuild/modules/unstable_icestorm.py b/mesonbuild/modules/unstable_icestorm.py index 0b7b339..1f548b6 100644 --- a/mesonbuild/modules/unstable_icestorm.py +++ b/mesonbuild/modules/unstable_icestorm.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from .. import mesonlib, compilers, mlog +from .. import mesonlib from . import ExtensionModule @@ -33,7 +33,6 @@ class IceStormModule(ExtensionModule): def project(self, interpreter, state, args, kwargs): if not self.yosys_bin: self.detect_binaries(interpreter) - result = [] if not len(args): raise mesonlib.MesonException('Project requires at least one argument, which is the project name.') proj_name = args[0] @@ -46,7 +45,7 @@ class IceStormModule(ExtensionModule): all_sources = interpreter.source_strings_to_files(interpreter.flatten(arg_sources + kwarg_sources)) if 'constraint_file' not in kwargs: raise mesonlib.MesonException('Constraint file not specified.') - + constraint_file = interpreter.source_strings_to_files(kwargs['constraint_file']) if len(constraint_file) != 1: raise mesonlib.MesonException('Constraint file must contain one and only one entry.') @@ -73,13 +72,13 @@ class IceStormModule(ExtensionModule): 'input': asc_target, 'output': bin_fname, 'command': [self.icepack_bin, '@INPUT@', '@OUTPUT@'], - 'build_by_default' : True}) + 'build_by_default': True}) - up_target = interpreter.func_run_target(None, [upload_name], { + interpreter.func_run_target(None, [upload_name], { 'command': [self.iceprog_bin, bin_target]}) - time_target = interpreter.func_run_target(None, [time_name], { - 'command' : [self.icetime_bin, bin_target]}) + interpreter.func_run_target(None, [time_name], { + 'command': [self.icetime_bin, bin_target]}) def initialize(): return IceStormModule() |