docs: def _setup_transport(self):
          '''
          Setup the transport.
          '''
          if 'RAW' in self.error_whitelist:
              log.info('%s %d will publish partially parsed messages', self._transport_type, self.pub_id)
          if 'UNKNOWN' in self.error_whitelist:
              log.info('%s %d will publish unknown messages', self._transport_type, self.pub_id)
          transport_class = get_transport(self._transport_type)
          log.debug('Serializing the object for %s using %s',
                    self._transport_type,
                    self.serializer)
          self.serializer_fun = get_serializer(self.serializer)
          self.transport = transport_class(self.address,
                                           self.port,
                                           **self.publisher_opts)
          self.__transport_encrypt = True
          if hasattr(self.transport, 'NO_ENCRYPT') and\
             getattr(self.transport, 'NO_ENCRYPT') is True:
              self.__transport_encrypt = False