def lines_from_file(path, as_interned=False, encoding=None):
lines = None<EOL>with io.open(path, encoding=encoding) as f:<EOL><INDENT>if as_interned:<EOL><INDENT>lines = [sys.intern(line) for line in f.read().splitlines()]<EOL><DEDENT>else:<EOL><INDENT>lines = f.read().splitlines()<EOL><DEDENT><DEDENT>return lines<EOL>
Create a list of file lines from a given filepath.

Args:
    path (str): File path
    as_interned (bool): List of "interned" strings (default False)

Returns:
    strings (list): File line list