diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-06-10 01:50:24 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-06-13 13:34:39 +0300 |
commit | 3f42c844de6d556391ecf092a960881428b724b7 (patch) | |
tree | 59c37118340eaf2463bc3a374ce903304627a765 /mesonbuild/dependencies | |
parent | 462b35e4b1b46db3b116d7ebd792f46404feee90 (diff) | |
download | meson-3f42c844de6d556391ecf092a960881428b724b7.zip meson-3f42c844de6d556391ecf092a960881428b724b7.tar.gz meson-3f42c844de6d556391ecf092a960881428b724b7.tar.bz2 |
flake8: fix non-idiomatic ordering of "if not in" checks
Diffstat (limited to 'mesonbuild/dependencies')
-rw-r--r-- | mesonbuild/dependencies/dub.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/dependencies/dub.py b/mesonbuild/dependencies/dub.py index 519f2f7..0680141 100644 --- a/mesonbuild/dependencies/dub.py +++ b/mesonbuild/dependencies/dub.py @@ -186,7 +186,7 @@ class DubDependency(ExternalDependency): for tgt in description['targets']: targets[tgt['rootPackage']] = tgt - if not name in targets: + if name not in targets: self.is_found = False if self.pkg['targetType'] == 'sourceLibrary': # source libraries have no associated targets, @@ -231,13 +231,13 @@ class DubDependency(ExternalDependency): self.compile_args.append('-I' + path) for path in bs['stringImportPaths']: - if not 'import_dir' in d_feature_args[self.compiler.id]: + if 'import_dir' not in d_feature_args[self.compiler.id]: break flag = d_feature_args[self.compiler.id]['import_dir'] self.compile_args.append(f'{flag}={path}') for ver in bs['versions']: - if not 'version' in d_feature_args[self.compiler.id]: + if 'version' not in d_feature_args[self.compiler.id]: break flag = d_feature_args[self.compiler.id]['version'] self.compile_args.append(f'{flag}={ver}') |