mk-fg / pretty-yaml

PyYAML-based module to produce a bit more pretty and readable YAML-serialized data
Do What The F*ck You Want To Public License
135 stars 29 forks source link

Using dump(data, safe=True) fails #6

Closed asheidan closed 10 years ago

asheidan commented 10 years ago

Using dump with safe set to True causes an error

...
File ".../lib/python2.7/site-packages/pyaml/__init__.py", line 135, in dump
    yaml.dump_all([data], buff, Dumper=Dumper, default_flow_style=False, encoding='utf-8')
  File ".../lib/python2.7/site-packages/yaml/__init__.py", line 186, in dump_all
    explicit_start=explicit_start, explicit_end=explicit_end)
TypeError: __init__() got an unexpected keyword argument 'force_embed'
mk-fg commented 10 years ago

Yeah, totally a bug, probably caused by refactoring in f814824 and of course missed due to lack of tests of any kind. Thanks for pointing it out. Should be fixed in latest git and pypi versions.