aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorMike Sinkovsky <msink@permonline.ru>2017-01-06 17:34:19 +0500
committerJussi Pakkanen <jpakkane@gmail.com>2017-01-11 12:33:27 -0500
commitc8981bdd1b116f379bcba9b6555d02f0b21e3471 (patch)
treee379157783cd8c75f0a7b690318a4a4660b9a587 /mesonbuild/build.py
parente9a891fe25a49042be0cc9893a449e5e75187a2d (diff)
downloadmeson-c8981bdd1b116f379bcba9b6555d02f0b21e3471.zip
meson-c8981bdd1b116f379bcba9b6555d02f0b21e3471.tar.gz
meson-c8981bdd1b116f379bcba9b6555d02f0b21e3471.tar.bz2
style: [E711] comparison to None should be 'if cond is None:'
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py6
1 files changed, 3 insertions, 3 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)