def _get_message_type (self):

        '''
            Get the message type.

            --
            @return str
        '''

        # Search for the message type
        type_search = [message_type for message_type in static_values.possible_message_types \
                       if message_type in self.response]

        # check that we only got 1 result back from the search
        if 1 > len(type_search):
            logger.warning('More than 1 message type found: ({res}). Selecting only the first entry'.format(
                res = ', '.join(type_search)
            ))

        return type_search[0]
dataset/ETHPy150Open leonjza/hogar/hogar/ResponseHandler.py/Response._get_message_type/swapped operands of `>`