diff options
author | Mike Sinkovsky <msink@permonline.ru> | 2017-01-06 17:34:19 +0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-11 12:33:27 -0500 |
commit | c8981bdd1b116f379bcba9b6555d02f0b21e3471 (patch) | |
tree | e379157783cd8c75f0a7b690318a4a4660b9a587 | |
parent | e9a891fe25a49042be0cc9893a449e5e75187a2d (diff) | |
download | meson-c8981bdd1b116f379bcba9b6555d02f0b21e3471.zip meson-c8981bdd1b116f379bcba9b6555d02f0b21e3471.tar.gz meson-c8981bdd1b116f379bcba9b6555d02f0b21e3471.tar.bz2 |
style: [E711] comparison to None should be 'if cond is None:'
-rw-r--r-- | mesonbuild/build.py | 6 | ||||
-rw-r--r-- | mesonbuild/interpreter.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 037b195..16ef5aa 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1062,7 +1062,7 @@ class SharedLibrary(BuildTarget): # If the user already provided the prefix and suffix to us, we don't # need to do any filename suffix/prefix detection. # NOTE: manual prefix/suffix override is currently only tested for C/C++ - if self.prefix != None and self.suffix != None: + if self.prefix is not None and self.suffix is not None: pass # C# and Mono elif 'cs' in self.compilers: @@ -1117,9 +1117,9 @@ class SharedLibrary(BuildTarget): else: # No versioning, libfoo.so self.filename_tpl = '{0.prefix}{0.name}.{0.suffix}' - if self.prefix == None: + if self.prefix is None: self.prefix = prefix - if self.suffix == None: + if self.suffix is None: self.suffix = suffix self.filename = self.filename_tpl.format(self) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 474a82f..7373fd6 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1405,7 +1405,7 @@ class Interpreter(InterpreterBase): for i in range(min(len(args), len(arg_types))): wanted = arg_types[i] actual = args[i] - if wanted != None: + if wanted is not None: if not isinstance(actual, wanted): raise InvalidArguments('Incorrect argument type.') |