mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
*: pylint: Explicitly specify encoding when open a file
This is recommended by PEP-0597: https://peps.python.org/pep-0597/ Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
05815bc992
commit
3c7bc4a192
49 files changed
+165
-138
No files matched your search
@@ -460,7 +460,7 @@ def _extract_image(compressed_file):
|
||||
|
||||
logger.info('Decompressing file %s', compressed_file)
|
||||
partial_file = compressed_file.with_suffix('.partial')
|
||||
with partial_file.open('w') as file_handle:
|
||||
with partial_file.open('w', encoding='utf-8') as file_handle:
|
||||
subprocess.run([
|
||||
'xz', '--verbose', '--decompress', '--keep', '--to-stdout',
|
||||
str(compressed_file)
|
||||
|
||||
Reference in new issue
Block a user