mirror of
https://github.com/iluvcapra/mfbatch.git
synced 2025-12-31 08:50:51 +00:00
autopep (added explicit encoding for from-file)
This commit is contained in:
@@ -146,7 +146,8 @@ def main():
|
|||||||
mode_given = True
|
mode_given = True
|
||||||
|
|
||||||
if options.from_file:
|
if options.from_file:
|
||||||
with open(options.from_file, 'r') as from_file:
|
with open(options.from_file, mode='r',
|
||||||
|
encoding='utf-8') as from_file:
|
||||||
flac_files = from_file.readlines()
|
flac_files = from_file.readlines()
|
||||||
else:
|
else:
|
||||||
flac_files = glob('./**/*.flac', recursive=True)
|
flac_files = glob('./**/*.flac', recursive=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user