diff options
author | Simon Glass <sjg@chromium.org> | 2023-09-23 13:44:03 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-10-04 09:25:21 -0600 |
commit | b774ba52c6c3c9b255a18d2fa27ac9165946b7e6 (patch) | |
tree | 3e69055778f7c82c6f475b886627b408a092a919 /tools/moveconfig.py | |
parent | a6ab4dbd6063b18d4af64b65cfd57c218ed9f9db (diff) |
moveconfig: Correct list-comprehension warnings
Correct some pylint warnings about needing to use list comprehension.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/moveconfig.py')
-rwxr-xr-x | tools/moveconfig.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 1dff891593..d46433c6d8 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -1422,12 +1422,12 @@ def do_scan_source(path, do_update): print('\nCONFIG options present in Makefiles but not Kconfig (SPL):') not_found = check_not_found(all_uses, MODE_SPL) show_uses(not_found) - spl_not_found |= set([is_not_proper(key) or key for key in not_found.keys()]) + spl_not_found |= {is_not_proper(key) or key for key in not_found.keys()} print('\nCONFIG options used as Proper in Makefiles but without a non-SPL_ variant:') not_found = check_not_found(all_uses, MODE_PROPER) show_uses(not_found) - proper_not_found |= set([key for key in not_found.keys()]) + proper_not_found |= {not_found.keys()} # Scan the source code all_uses, _ = scan_src_files(src_list) @@ -1440,12 +1440,12 @@ def do_scan_source(path, do_update): print('\nCONFIG options present in source but not Kconfig (SPL):') not_found = check_not_found(all_uses, MODE_SPL) show_uses(not_found) - spl_not_found |= set([is_not_proper(key) or key for key in not_found.keys()]) + spl_not_found |= {is_not_proper(key) or key for key in not_found.keys()} print('\nCONFIG options used as Proper in source but without a non-SPL_ variant:') not_found = check_not_found(all_uses, MODE_PROPER) show_uses(not_found) - proper_not_found |= set([key for key in not_found.keys()]) + proper_not_found |= {not_found.keys()} print('\nCONFIG options used as SPL but without an SPL_ variant:') for item in sorted(spl_not_found): |