diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-07-04 23:17:27 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-07-04 23:17:27 +0200 |
commit | 14183966ee4d729c7aa26274ced720d36e9f8fa4 (patch) | |
tree | 1eba15c4fc7fa3c6618ac7c4f9a822de2a95b1e6 /main.py | |
parent | 2f32798da642a6db67437b73486d2bca8c45bbd2 (diff) | |
download | ruamel.yaml-14183966ee4d729c7aa26274ced720d36e9f8fa4.tar.gz |
added pure to YAML0.15.18
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |