diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-11-16 16:50:29 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-12-19 10:10:40 -0800 |
commit | e1c9d2f53a1fb021e266e189e615919cb74569e2 (patch) | |
tree | 2be6e4dc089e1409dd90141c3e97b1bff91d493c /mesonbuild/mesonmain.py | |
parent | 8eaa0a27323e9fbee01b8aa0cf165cd499b78ee1 (diff) | |
download | meson-e1c9d2f53a1fb021e266e189e615919cb74569e2.zip meson-e1c9d2f53a1fb021e266e189e615919cb74569e2.tar.gz meson-e1c9d2f53a1fb021e266e189e615919cb74569e2.tar.bz2 |
mesonmain: Remove useless ternary
This ternary checks the value of a bool, and returns the same value.
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r-- | mesonbuild/mesonmain.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index f261935..f811def 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -28,7 +28,7 @@ default_warning = '1' def add_builtin_argument(p, name, **kwargs): k = kwargs.get('dest', name.replace('-', '_')) c = coredata.get_builtin_option_choices(k) - b = True if kwargs.get('action', None) in ['store_true', 'store_false'] else False + b = kwargs.get('action', None) in ['store_true', 'store_false'] h = coredata.get_builtin_option_description(k) if not b: h = h.rstrip('.') + ' (default: %s).' % coredata.get_builtin_option_default(k) |