def parse(self, filelike, filename):
self.log = log<EOL>self.source = filelike.readlines()<EOL>src = '<STR_LIT>'.join(self.source)<EOL>try:<EOL><INDENT>compile(src, filename, '<STR_LIT>')<EOL><DEDENT>except SyntaxError as error:<EOL><INDENT>raise ParseError() from error<EOL><DEDENT>self.stream = TokenStream(StringIO(src))<EOL>self.filename = filename<EOL>self.dunder_all = None<EOL>self.dunder_all_error = None<EOL>self.future_imports = set()<EOL>self._accumulated_decorators = []<EOL>return self.parse_module()<EOL>
Parse the given file-like object and return its Module object.