def BuildObjects(default_class, stream, loader=yaml.loader.SafeLoader):
 builder = ObjectBuilder(default_class)
 handler = yaml_builder.BuilderHandler(builder)
 listener = yaml_listener.EventListener(handler)
 listener.Parse(stream, loader)
 return handler.GetResults()

def BuildObjects ( default_class , stream , loader = yaml . loader . SafeLoader ) : builder = ObjectBuilder ( default_class ) handler = yaml_builder . BuilderHandler ( builder ) listener = yaml_listener . EventListener ( handler ) listener . Parse ( stream , loader ) return handler . GetResults ( )
build objects from stream .