def parse(self, text, html=True):
        '''Parse the text and return a ParseResult instance.'''
        self._urls = []
        self._users = []
        self._lists = []
        self._tags = []

        reply = REPLY_REGEX.match(text)
        reply = reply.groups(0)[0] if reply is not None else None

        parsed_html = self._html(text) if html else self._text(text)
        return ParseResult(self._urls, self._users, reply,
                           self._lists, self._tags, parsed_html)
def parse ( self , text , html = True ) : self . _urls = [ ] self . _users = [ ] self . _lists = [ ] self . _tags = [ ] reply = REPLY_REGEX . match ( text ) reply = reply . groups ( 0 ) [ 0 ] if reply is not None else None parsed_html = self . _html ( text ) if html else self . _text ( text ) return ParseResult ( self . _urls , self . _users , reply , self . _lists , self . _tags , parsed_html )
Parse the text and return a ParseResult instance.