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(): ...@@ -1645,7 +1645,12 @@ def main():
logfile_context = nullcontext() logfile_context = nullcontext()
else: else:
for opener, exc in FILE_OPENER_LIST: 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: try:
logfile.readline() logfile.readline()
except exc: except exc:
...@@ -1656,7 +1661,7 @@ def main(): ...@@ -1656,7 +1661,7 @@ def main():
else: else:
logfile = open( # pylint: disable=consider-using-with logfile = open( # pylint: disable=consider-using-with
filename, filename,
'r', 'rt',
encoding=INPUT_ENCODING, encoding=INPUT_ENCODING,
errors=INPUT_ENCODING_ERROR_HANDLER, 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