def input(self, file):
if isinstance(file, string_types):<EOL><INDENT>with open(file) as f:<EOL><INDENT>self.lexer.input(f.read())<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.lexer.input(file.read())<EOL><DEDENT>
Load lexer with content from `file` which can be a path or a file
like object.