I have
>>> import yaml >>> yaml.dump(u\'abc\') \"!!python/unicode \'abc\'\\n\"
But I want
>>> import
I've just started with Python and YAML, but probably this may also help. Just compare outputs:
def test_dump(self): print yaml.dump([{'name': 'value'}, {'name2': 1}], explicit_start=True) print yaml.dump_all([{'name': 'value'}, {'name2': 1}])