mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-19 08:39:55 +00:00
Improve tests/scripts/depends.py code
As suggested by gilles-peskine-arm. Co-authored-by: Gilles Peskine <[email protected]> Signed-off-by: Andrzej Kurek <[email protected]>
This commit is contained in:
co-authored by
Gilles Peskine
parent
2432dc212e
commit
3ebe7d6260
@@ -126,9 +126,7 @@ Remove the backup file if it was saved earlier."""
|
||||
shutil.copy(options.config_backup, options.config)
|
||||
|
||||
def option_exists(conf, option):
|
||||
if option not in conf.settings:
|
||||
return False
|
||||
return True
|
||||
return option in conf.settings
|
||||
|
||||
def set_config_option_value(conf, option, colors, value: Union[bool, str]):
|
||||
"""Set/unset a configuration option, optionally specifying a value.
|
||||
|
||||
Reference in New Issue
Block a user