@classmethod<EOL><INDENT>def from_stream(cls, f, **kwargs):<DEDENT>
lines = lines_from_stream(f)<EOL>if '<STR_LIT>' not in kwargs:<EOL><INDENT>kwargs['<STR_LIT>'] = {'<STR_LIT>': '<STR_LIT>'}<EOL><DEDENT>kwargs['<STR_LIT>']['<STR_LIT>'] = f.name if hasattr(f, '<STR_LIT:name>') else None<EOL>return cls(lines, **kwargs)<EOL>
Create an editor instance from a file stream.