From b1ec5fd541f62ef2b6fc35141c88a8488649fa49 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Tue, 17 Sep 2024 13:28:51 +0200 Subject: [PATCH] Fix `get` function functionality To meet the documentation fix the `get` function to return the value of the `default` parameter if an inactive setting is handled. Signed-off-by: Gabor Mezei --- scripts/mbedtls_framework/config_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mbedtls_framework/config_common.py b/scripts/mbedtls_framework/config_common.py index b31d82b21..5e2a09d2e 100644 --- a/scripts/mbedtls_framework/config_common.py +++ b/scripts/mbedtls_framework/config_common.py @@ -90,7 +90,7 @@ class Config: If a #define for name is present but commented out, return default. """ - if name in self.settings: + if name in self: return self.settings[name].value else: return default