Source

pyyaml / tests / data / serializer-is-closed-2.dumper-error

1
2
3
4
dumper = yaml.Dumper(StringIO())
dumper.open()
dumper.close()
dumper.serialize(yaml.ScalarNode(tag='!foo', value='bar'))