6 lines
147 B
Python
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()]
|