Commit 0406bedc authored by Matěj Cepl's avatar Matěj Cepl

yamlish.dumps returns Unicode string

Fixes #3
parent 4917a0dd
......@@ -12,11 +12,11 @@ def read(fname):
setup(
name='yamlish',
version="0.16",
version="0.17.0",
description='Python implementation of YAMLish',
author='Matěj Cepl',
author_email='mcepl@redhat.com',
url='http://luther.ceplovi.cz/git/?p=yamlish.git;a=summary',
url='https://github.com/mcepl/yamlish/',
py_modules=['yamlish'],
long_description=read("README.rst"),
keywords=['TAP', 'YAML', 'yamlish'],
......
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment