3
0
Fork 0

fix: fix 'unspecified-encoding' for pylint

This commit is contained in:
Lance Edgar 2025-08-31 22:53:45 -05:00
parent 7136240841
commit d265695cee
2 changed files with 1 additions and 2 deletions

View file

@ -38,4 +38,3 @@ disable=fixme,
unnecessary-comprehension,
unnecessary-lambda,
unnecessary-lambda-assignment,
unspecified-encoding,

View file

@ -323,7 +323,7 @@ class UpgradeView(MasterView):
size = os.path.getsize(path) - offset
if size > 0:
# with open(path, 'rb') as f:
with open(path) as f:
with open(path, "rt", encoding="utf_8") as f:
f.seek(offset)
chunk = f.read(size)
# data['stdout'] = chunk.decode('utf8').replace('\n', '<br />')