(self)
return None
Parses *self._data* and saves the result in the member variables.

        This method decides, if self.data contains an event or a response.
Parses *self._data* and saves the result in the member variables.
Parses * self . _data * and saves the result in the member variables .
def _parse_data(self):
        """
        Parses *self._data* and saves the result in the member variables.

        This method decides, if self.data contains an event or a response.
        """
        # Return, if we already tried to parse the data.
        if not self._is_parseable:
            raise TS3ParserError(self)
        if self._parsed is not None:
            return None

        try:
            has_error_line = re.match(self._ERROR_LINE, self._data[-1])

            # An event has only one line and no error line.
            if 1 == len(self._data) and not has_error_line:
                self._parse_event()
            # A query has two lines and the last line is the error line.
            elif has_error_line:
                self._parse_query_response()
            else:
                raise TS3ParserError(self)
        except TS3ParserError:
            self._is_parseable = False
            raise
        else:
            self._is_parseable = True
        return None
def _parse_data ( self ) : # Return, if we already tried to parse the data. if not self . _is_parseable : raise TS3ParserError ( self ) if self . _parsed is not None : return None try : has_error_line = re . match ( self . _ERROR_LINE , self . _data [ - 1 ] ) # An event has only one line and no error line. if 1 == len ( self . _data ) and not has_error_line : self . _parse_event ( ) # A query has two lines and the last line is the error line. elif has_error_line : self . _parse_query_response ( ) else : raise TS3ParserError ( self ) except TS3ParserError : self . _is_parseable = False raise else : self . _is_parseable = True return None