aboutsummaryrefslogtreecommitdiffstats
path: root/yamlish.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2015-02-09 10:42:17 +0100
committerMatěj Cepl <mcepl@cepl.eu>2015-02-09 10:46:02 +0100
commit0406bedcd5ea73d4d96657818cae6fc3bdbb100c (patch)
tree53f7d0ae7726a76e8b8ced2b25f66891f85fc055 /yamlish.py
parent4917a0dd34d7d53dae73a24808e0ff95bfd32ab2 (diff)
downloadyamlish-0406bedcd5ea73d4d96657818cae6fc3bdbb100c.tar.gz
yamlish.dumps returns Unicode string
Fixes #3
Diffstat (limited to 'yamlish.py')
-rw-r--r--yamlish.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yamlish.py b/yamlish.py
index 2d2bd7f..bb616bc 100644
--- a/yamlish.py
+++ b/yamlish.py
@@ -246,7 +246,7 @@ def dumps(source):
"""
Return YAMLish string from given source.
"""
- return yaml.dump(source, encoding="utf-8",
+ return yaml.dump(source, encoding=None,
explicit_start=True, explicit_end=True,
default_flow_style=False, default_style=False,
canonical=False, Dumper=_YamlishDumper)