From 94d54f4e4a19514d23c6106f2a982c1ca6fa2c88 Mon Sep 17 00:00:00 2001 From: pupssman Date: Mon, 15 Dec 2014 23:57:30 +0400 Subject: [PATCH] Allow passing optional kwargs to _dump to be passed to the yaml.dump --- setup.py | 2 +- yamb/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 49af9e4..dc3fabc 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setuptools.setup( name='yamb', - version='0.1.1', + version='0.1.2', license='Apache License, Version 2.0', author="Ivan Kalinin", author_email="pupssman@yandex-team.ru", diff --git a/yamb/__init__.py b/yamb/__init__.py index cc04eaa..eb1c1e7 100644 --- a/yamb/__init__.py +++ b/yamb/__init__.py @@ -129,10 +129,10 @@ def _load(cls, document, top=True): return cls._load(doc, top=False) return cls(_data=document) - def _dump(self, top=True): + def _dump(self, top=True, **kw): if top: doc = self._dump(top=False) - return yaml.dump(doc) + return yaml.dump(doc, **kw) else: return self._data