summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-07-04 23:17:27 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-07-04 23:17:27 +0200
commit14183966ee4d729c7aa26274ced720d36e9f8fa4 (patch)
tree1eba15c4fc7fa3c6618ac7c4f9a822de2a95b1e6 /main.py
parent2f32798da642a6db67437b73486d2bca8c45bbd2 (diff)
downloadruamel.yaml-14183966ee4d729c7aa26274ced720d36e9f8fa4.tar.gz
added pure to YAML0.15.18
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index 1c5ec70..b0f847b 100644
--- a/main.py
+++ b/main.py
@@ -60,6 +60,7 @@ class YAML(object):
"one was given ({!r})".format(self.__class__.__name__, _kw))
self.typ = 'rt' if typ is None else typ
+ self.pure = pure
self.plug_ins = [] # type: List[Any]
for pu in ([] if plug_ins is None else plug_ins) + self.official_plug_ins():
file_name = pu.replace('/', '.')
@@ -340,7 +341,6 @@ class YAML(object):
# type: (Any, StreamType, Any, Any) -> Any
"""
Serialize a sequence of Python objects into a YAML stream.
- If stream is None, return the produced string instead.
"""
if not hasattr(stream, 'write') and hasattr(stream, 'open'):
# pathlib.Path() instance