projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f30e6
)
Fix pylint W0613: Unused argument 'mode'
author
Alexander Popov
<alex.popov@linux.com>
Tue, 16 Jan 2024 04:18:40 +0000
(07:18 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Tue, 16 Jan 2024 04:18:40 +0000
(07:18 +0300)
kernel_hardening_checker/__init__.py
patch
|
blob
|
history
diff --git
a/kernel_hardening_checker/__init__.py
b/kernel_hardening_checker/__init__.py
index a27e377e8807563f9c9b1e9b507d88fdb39a9d69..a092e5c8cdbd432221291f879d62ffee3bd5a184 100644
(file)
--- 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$")