dumper = yaml.Dumper(io.StringIO()) dumper.close()