Drop logic for Python < 3

Python 2 support was removed globally multiple cycles ago.

Change-Id: I503ef9be68e59c8983d245f1fbb689651eb564ff
This commit is contained in:
Takashi Kajinami
2025-06-23 22:32:56 +09:00
parent df3fa12468
commit 37c755e707

View File

@@ -90,13 +90,10 @@ def main():
if outfile:
# We've opened outfile as a binary file to get the
# non-buffered behaviour. on python3, sys.stdin was
# non-buffered behaviour. on python3, sys.stdin was
# opened with the system encoding and made the line into
# utf-8, so write the logfile out in utf-8 bytes.
if sys.version_info < (3,):
outfile.write(ts_line)
else:
outfile.write(ts_line.encode('utf-8'))
outfile.write(ts_line.encode('utf-8'))
outfile.flush()