Commit dafe8536 authored by Vincent Pelletier's avatar Vincent Pelletier

Minor source reformatting

Word-wrap a long line.
open's mode is text by default, make it explicit.
No change expected.
parent f22f9e03
......@@ -1645,7 +1645,12 @@ def main():
logfile_context = nullcontext()
else:
for opener, exc in FILE_OPENER_LIST:
logfile = opener(filename, 'rt', encoding=INPUT_ENCODING, errors=INPUT_ENCODING_ERROR_HANDLER)
logfile = opener(
filename,
'rt',
encoding=INPUT_ENCODING,
errors=INPUT_ENCODING_ERROR_HANDLER,
)
try:
logfile.readline()
except exc:
......@@ -1656,7 +1661,7 @@ def main():
else:
logfile = open( # pylint: disable=consider-using-with
filename,
'r',
'rt',
encoding=INPUT_ENCODING,
errors=INPUT_ENCODING_ERROR_HANDLER,
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment