Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
潘俊勇 committed Oct 30, 2014
1 parent c8ed1cc commit 9f12418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyaml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def dump(data, dst=unicode, safe=False, force_embed=False, vspacing=None):
buff = io.BytesIO()
Dumper = PrettyYAMLDumper if safe else UnsafePrettyYAMLDumper
Dumper = ft.partial(Dumper, force_embed=force_embed)
yaml.dump_all([data], buff, Dumper=Dumper, default_flow_style=False, encoding='utf-8')
yaml.dump_all([data], buff, Dumper=Dumper, default_flow_style=False, encoding='utf-8', allow_unicode=True)

if vspacing is not None:
dump_add_vspacing(buff, vspacing)
Expand Down

0 comments on commit 9f12418

Please sign in to comment.