diff options
| author | Simon Glass <sjg@chromium.org> | 2022-02-11 13:23:19 -0700 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2022-03-02 10:28:12 -0500 |
| commit | ac05335d854179d4fb2cd018469b01682cba3a30 (patch) | |
| tree | e89733d1a60d428601f5725b8afb58087f9b2487 /tools/buildman/cfgutil.py | |
| parent | 32cc6ae273128510cffc536fc72f260181ef1744 (diff) | |
buildman: Correct pylint errors
Fix pylint errors that can be fixed and mask those that seem to be
incorrect.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/cfgutil.py')
| -rw-r--r-- | tools/buildman/cfgutil.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/buildman/cfgutil.py b/tools/buildman/cfgutil.py index 4eba50868f5..ab74a8ef062 100644 --- a/tools/buildman/cfgutil.py +++ b/tools/buildman/cfgutil.py @@ -123,10 +123,10 @@ def adjust_cfg_file(fname, adjust_cfg): C=val to set the value of C (val must have quotes if C is a string Kconfig) """ - lines = tools.ReadFile(fname, binary=False).splitlines() + lines = tools.read_file(fname, binary=False).splitlines() out_lines = adjust_cfg_lines(lines, adjust_cfg) out = '\n'.join(out_lines) + '\n' - tools.WriteFile(fname, out, binary=False) + tools.write_file(fname, out, binary=False) def convert_list_to_dict(adjust_cfg_list): """Convert a list of config changes into the dict used by adjust_cfg_file() @@ -219,7 +219,7 @@ def check_cfg_file(fname, adjust_cfg): Returns: str: None if OK, else an error string listing the problems """ - lines = tools.ReadFile(fname, binary=False).splitlines() + lines = tools.read_file(fname, binary=False).splitlines() bad_cfgs = check_cfg_lines(lines, adjust_cfg) if bad_cfgs: out = [f'{cfg:20} {line}' for cfg, line in bad_cfgs] |
