Improve tests/scripts/depends.py code
As suggested by gilles-peskine-arm. Co-authored-by: Gilles Peskine <gilles.peskine@arm.com> Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
576803faa2
commit
81cf5ad347
1 changed files with 1 additions and 3 deletions
|
@ -138,9 +138,7 @@ Remove the backup file if it was saved earlier."""
|
||||||
shutil.copy(options.config_backup, options.config)
|
shutil.copy(options.config_backup, options.config)
|
||||||
|
|
||||||
def option_exists(conf, option):
|
def option_exists(conf, option):
|
||||||
if option not in conf.settings:
|
return option in conf.settings
|
||||||
return False
|
|
||||||
return True
|
|
||||||
|
|
||||||
def set_config_option_value(conf, option, colors, value: Union[bool, str]):
|
def set_config_option_value(conf, option, colors, value: Union[bool, str]):
|
||||||
"""Set/unset a configuration option, optionally specifying a value.
|
"""Set/unset a configuration option, optionally specifying a value.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue