From a54cd3b89b7208815e39076066cd6e2a1ee33956 Mon Sep 17 00:00:00 2001 From: Anatoly Ivanov Date: Mon, 30 Jul 2018 17:17:05 +0300 Subject: [PATCH] get_option_state function now looks a lot prettier using dict.get() method --- kconfig-hardened-check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index e586722..ac9ee3a 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -234,7 +234,7 @@ def print_check_results(): def get_option_state(options, name): - return options[name] if name in options else None + return options.get(name, None) def perform_checks(parsed_options): -- 2.31.1