code: def dump_to_stream(self, cnf, stream, **kwargs):
          
          dump_with_fn(self._dump_to_stream_fn, cnf, stream, **kwargs)
docs: Dump config 'cnf' to a file-like object 'stream'.
  
          TODO: How to process socket objects same as file objects ?
  
          :param cnf: Configuration data to dump
          :param stream:  Config file or file like object
          :param kwargs: optional keyword parameters to be sanitized :: dict