def serialize_all(nodes, stream=None, Dumper=Dumper, 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):
  try:
   from cStringIO import StringIO
  except ImportError:
   from StringIO import StringIO
  stream = StringIO()
  getvalue = stream.getvalue
 dumper = Dumper(stream, 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 node in nodes:
  dumper.serialize(node)
 dumper.close()
 if getvalue:
  return getvalue()

def serialize_all ( nodes , stream = None , Dumper = Dumper , 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 ) : try : from cStringIO import StringIO except ImportError : from StringIO import StringIO stream = StringIO ( ) getvalue = stream . getvalue dumper = Dumper ( stream , 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 node in nodes : dumper . serialize ( node ) dumper . close ( ) if getvalue : return getvalue ( )
serialize a sequence of representation trees into a yaml stream .