aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-09-23 13:44:04 -0600
committerSimon Glass <sjg@chromium.org>2023-10-04 09:25:21 -0600
commite6c686f40501bd287bf0199a88ab280ccd54b322 (patch)
tree9b7cb4f49db69fd844ebeab2d92e0cd1c45fd1d9 /tools
parentb774ba52c6c3c9b255a18d2fa27ac9165946b7e6 (diff)
downloadu-boot-e6c686f40501bd287bf0199a88ab280ccd54b322.zip
u-boot-e6c686f40501bd287bf0199a88ab280ccd54b322.tar.gz
u-boot-e6c686f40501bd287bf0199a88ab280ccd54b322.tar.bz2
moveconfig: Use an encoding with open()
Fix pylint warnings about needing an explicit character encoding. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/moveconfig.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index d46433c..9b71659 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -1457,12 +1457,14 @@ def do_scan_source(path, do_update):
# Write out the updated information
if do_update:
- with open(os.path.join(path, 'scripts', 'conf_nospl'), 'w') as out:
+ with open(os.path.join(path, 'scripts', 'conf_nospl'), 'w',
+ encoding='utf-8') as out:
print('# These options should not be enabled in SPL builds\n',
file=out)
for item in sorted(spl_not_found):
print(item, file=out)
- with open(os.path.join(path, 'scripts', 'conf_noproper'), 'w') as out:
+ with open(os.path.join(path, 'scripts', 'conf_noproper'), 'w',
+ encoding='utf-8') as out:
print('# These options should not be enabled in Proper builds\n',
file=out)
for item in sorted(proper_not_found):