aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-06-14 15:36:17 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-06-22 09:13:41 -0700
commit132420a05901deb8be5524c17fde7031d5d9b8a1 (patch)
tree9871049ec6170c576a44f0e131361a601f15ec85 /mesonbuild/backend/backends.py
parentd636b92c1adc1588ff11b6ee4972c4bdd686f433 (diff)
downloadmeson-132420a05901deb8be5524c17fde7031d5d9b8a1.zip
meson-132420a05901deb8be5524c17fde7031d5d9b8a1.tar.gz
meson-132420a05901deb8be5524c17fde7031d5d9b8a1.tar.bz2
minstall: make intentions clearer
The existing code works, but it probably doesn't do what the author thought it would do. `(x or y or z) is not None` works by checking that each of those things are *truthy* in turn, and returning the first truthy value, which is compared against None. Using `all()` makes it very clear that what you want to do is make sure that each value is not None.
Diffstat (limited to 'mesonbuild/backend/backends.py')
0 files changed, 0 insertions, 0 deletions