From 1d054d2c10d4969c205e583b239452bd7d3a42e5 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 16 Jan 2024 07:18:40 +0300 Subject: [PATCH] Fix pylint W0613: Unused argument 'mode' --- kernel_hardening_checker/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel_hardening_checker/__init__.py b/kernel_hardening_checker/__init__.py index a27e377..a092e5c 100644 --- a/kernel_hardening_checker/__init__.py +++ b/kernel_hardening_checker/__init__.py @@ -150,7 +150,7 @@ def print_checklist(mode, checklist, with_results): print(f'[+] Config check is finished: \'OK\' - {ok_count}{ok_suppressed} / \'FAIL\' - {fail_count}{fail_suppressed}') -def parse_kconfig_file(mode, parsed_options, fname): +def parse_kconfig_file(_mode, parsed_options, fname): with _open(fname, 'rt', encoding='utf-8') as f: opt_is_on = re.compile(r"CONFIG_[a-zA-Z0-9_]+=.+$") opt_is_off = re.compile(r"# CONFIG_[a-zA-Z0-9_]+ is not set$") -- 2.31.1