def dump_all(documents, stream=None, Dumper=Dumper, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding='utf-8', explicit_start=None, explicit_end=None, version=None, tags=None):
 getvalue = None
 if (stream is None):
  if (encoding is None):
   from StringIO import StringIO
  else:
   from cStringIO import StringIO
  stream = StringIO()
  getvalue = stream.getvalue
 dumper = Dumper(stream, default_style=default_style, default_flow_style=default_flow_style, canonical=canonical, indent=indent, width=width, allow_unicode=allow_unicode, line_break=line_break, encoding=encoding, version=version, tags=tags, explicit_start=explicit_start, explicit_end=explicit_end)
 dumper.open()
 for data in documents:
  dumper.represent(data)
 dumper.close()
 if getvalue:
  return getvalue()

def dump_all ( documents , stream = None , Dumper = Dumper , default_style = None , default_flow_style = None , canonical = None , indent = None , width = None , allow_unicode = None , line_break = None , encoding = 'utf-8' , explicit_start = None , explicit_end = None , version = None , tags = None ) : getvalue = None if ( stream is None ) : if ( encoding is None ) : from StringIO import StringIO else : from cStringIO import StringIO stream = StringIO ( ) getvalue = stream . getvalue dumper = Dumper ( stream , default_style = default_style , default_flow_style = default_flow_style , canonical = canonical , indent = indent , width = width , allow_unicode = allow_unicode , line_break = line_break , encoding = encoding , version = version , tags = tags , explicit_start = explicit_start , explicit_end = explicit_end ) dumper . open ( ) for data in documents : dumper . represent ( data ) dumper . close ( ) if getvalue : return getvalue ( )
serialize a sequence of python objects into a yaml stream .