From 0406bedcd5ea73d4d96657818cae6fc3bdbb100c Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 9 Feb 2015 10:42:17 +0100 Subject: yamlish.dumps returns Unicode string Fixes #3 --- setup.py | 4 ++-- yamlish.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 23afc38..f94b549 100644 --- a/setup.py +++ b/setup.py @@ -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'], 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) -- cgit