fix: fix 'unspecified-encoding' for pylint
This commit is contained in:
parent
7136240841
commit
d265695cee
2 changed files with 1 additions and 2 deletions
|
@ -38,4 +38,3 @@ disable=fixme,
|
|||
unnecessary-comprehension,
|
||||
unnecessary-lambda,
|
||||
unnecessary-lambda-assignment,
|
||||
unspecified-encoding,
|
||||
|
|
|
@ -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 />')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue