From: Alexander Popov Date: Tue, 16 Jan 2024 04:18:40 +0000 (+0300) Subject: Fix pylint W0613: Unused argument 'mode' X-Git-Tag: v0.6.6~14 X-Git-Url: https://jxself.org/git/?p=kconfig-hardened-check.git;a=commitdiff_plain;h=1d054d2c10d4969c205e583b239452bd7d3a42e5 Fix pylint W0613: Unused argument 'mode' --- 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$")