def get_lines(filename: str) -> Iterator[str]:
if filename.endswith('<STR_LIT>'):<EOL><INDENT>with gzip.open(filename, '<STR_LIT:r>') as f:<EOL><INDENT>for line in f:<EOL><INDENT>yield line.decode('<STR_LIT:utf-8>')<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>with open(filename, '<STR_LIT:r>', encoding='<STR_LIT:utf-8>') as f:<EOL><INDENT>for line in f:<EOL><INDENT>yield line<EOL><DEDENT><DEDENT><DEDENT>
Create an iterator that returns the lines of a utf-8 encoded file.