wg-backend-django/dell-env/lib/python3.11/site-packages/ansi2html/util.py
2023-10-30 14:40:43 +07:00

6 lines
147 B
Python

from typing import BinaryIO, List
def read_to_unicode(obj: BinaryIO) -> List[str]:
return [line.decode("utf-8") for line in obj.readlines()]