(self, line)
return error
Returns the parsed error line. If the line is not a valid error
        line, None is returned.

        >>> parse_error(b'error id=0 msg=ok')
        {'id': '0', 'msg': 'ok'}
        >>> parse_error(b'foobar')
        None
Returns the parsed error line. If the line is not a valid error
        line, None is returned.
Returns the parsed error line . If the line is not a valid error line None is returned .
def _parse_error(self, line):
        """
        Returns the parsed error line. If the line is not a valid error
        line, None is returned.

        >>> parse_error(b'error id=0 msg=ok')
        {'id': '0', 'msg': 'ok'}
        >>> parse_error(b'foobar')
        None
        """
        if not re.match(self._ERROR_LINE, line):
            raise TS3ParserError(self)

        line = line.split()
        error = dict(self._parse_property(line[i]) \
                     for i in range(1, len(line)))
        return error
def _parse_error ( self , line ) : if not re . match ( self . _ERROR_LINE , line ) : raise TS3ParserError ( self ) line = line . split ( ) error = dict ( self . _parse_property ( line [ i ] ) for i in range ( 1 , len ( line ) ) ) return error