aboutsummaryrefslogtreecommitdiffstats
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
parent4917a0dd34d7d53dae73a24808e0ff95bfd32ab2 (diff)
downloadyamlish-0406bedcd5ea73d4d96657818cae6fc3bdbb100c.tar.gz
yamlish.dumps returns Unicode string
Fixes #3
-rw-r--r--setup.py4
-rw-r--r--yamlish.py2
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)