@classmethod<EOL><INDENT>def from_file(cls, path, **kwargs):<DEDENT>
lines = lines_from_file(path)<EOL>if '<STR_LIT>' not in kwargs:<EOL><INDENT>kwargs['<STR_LIT>'] = {'<STR_LIT>': '<STR_LIT:file>'}<EOL><DEDENT>kwargs['<STR_LIT>']['<STR_LIT>'] = path<EOL>return cls(lines, **kwargs)<EOL>
Create an editor instance from a file on disk.