code: def dump_to_stream(self, cnf, stream, **kwargs):
          
          for key, val in anyconfig.compat.iteritems(cnf):
              stream.write("%s='%s'%s" % (key, val, os.linesep))
docs: Dump config 'cnf' to a file or file-like object 'stream'.
  
          :param cnf: Shell variables data to dump
          :param stream: Shell script file or file like object
          :param kwargs: backend-specific optional keyword parameters :: dict