diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-11-21 09:40:46 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-11-21 09:40:46 +0100 |
commit | 06d22dfdbdf9bac2d3443be3e57f17ac21798eaa (patch) | |
tree | b40e8f63446a9a2d0c47bf74b9087eb935ecc3a7 | |
parent | f674cbd0e04dcd3c09545a1ae75a80c6c8d3f3e2 (diff) | |
download | ruamel.yaml-06d22dfdbdf9bac2d3443be3e57f17ac21798eaa.tar.gz |
resolves issue with anchors specified deeper in the data structure than aliases0.15.79
-rw-r--r-- | CHANGES | 8 | ||||
-rw-r--r-- | README.rst | 8 | ||||
-rw-r--r-- | __init__.py | 4 | ||||
-rw-r--r-- | _doc/_static/pypi.svg | 2 | ||||
-rw-r--r-- | constructor.py | 2 |
5 files changed, 18 insertions, 6 deletions
@@ -1,3 +1,11 @@ +[0, 15, 79]: 2018-11-21 + - fix issue with anchors nested deeper than alias (reported by gaFF on + `StackOverflow <https://stackoverflow.com/a/53397781/1307905>`__) + +[0, 15, 79]: 2018-11-21 + - fix issue with anchors nested deeper than alias (reported by gaFF on + `StackOverflow <https://stackoverflow.com/a/53397781/1307905>`__) + [0, 15, 78]: 2018-11-15 - fix setup issue for 3.8 (reported by `Sidney Kuyateh <https://bitbucket.org/autinerd/>`__) @@ -4,8 +4,8 @@ ruamel.yaml ``ruamel.yaml`` is a YAML 1.2 loader/dumper package for Python. -:version: 0.15.78 -:updated: 2018-11-15 +:version: 0.15.79 +:updated: 2018-11-21 :documentation: http://yaml.readthedocs.io :repository: https://bitbucket.org/ruamel/ :pypi: https://pypi.org/project/ruamel.yaml/ @@ -54,6 +54,10 @@ ChangeLog .. should insert NEXT: at the beginning of line for next key (with empty line) +0.15.79 (2018-11-21): + - fix issue with anchors nested deeper than alias (reported by gaFF on + `StackOverflow <https://stackoverflow.com/a/53397781/1307905>`__) + 0.15.78 (2018-11-15): - fix setup issue for 3.8 (reported by `Sidney Kuyateh <https://bitbucket.org/autinerd/>`__) diff --git a/__init__.py b/__init__.py index a2e7a02..9988df7 100644 --- a/__init__.py +++ b/__init__.py @@ -7,8 +7,8 @@ if False: # MYPY _package_data = dict( full_package_name='ruamel.yaml', - version_info=(0, 15, 78), - __version__='0.15.78', + version_info=(0, 15, 79), + __version__='0.15.79', author='Anthon van der Neut', author_email='a.van.der.neut@ruamel.eu', description='ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order', # NOQA diff --git a/_doc/_static/pypi.svg b/_doc/_static/pypi.svg index 5364f4e..e9d13c5 100644 --- a/_doc/_static/pypi.svg +++ b/_doc/_static/pypi.svg @@ -1 +1 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="86" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="86" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h33v20H0z"/><path fill="#007ec6" d="M33 0h53v20H33z"/><path fill="url(#b)" d="M0 0h86v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="175" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="230">pypi</text><text x="175" y="140" transform="scale(.1)" textLength="230">pypi</text><text x="585" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">0.15.78</text><text x="585" y="140" transform="scale(.1)" textLength="430">0.15.78</text></g> </svg> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="86" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="86" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h33v20H0z"/><path fill="#007ec6" d="M33 0h53v20H33z"/><path fill="url(#b)" d="M0 0h86v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="175" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="230">pypi</text><text x="175" y="140" transform="scale(.1)" textLength="230">pypi</text><text x="585" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">0.15.79</text><text x="585" y="140" transform="scale(.1)" textLength="430">0.15.79</text></g> </svg> diff --git a/constructor.py b/constructor.py index bf484e1..09c55dd 100644 --- a/constructor.py +++ b/constructor.py @@ -1505,7 +1505,7 @@ class RoundTripConstructor(SafeConstructor): data = CommentedMap() data._yaml_set_line_col(node.start_mark.line, node.start_mark.column) yield data - self.construct_mapping(node, data) + self.construct_mapping(node, data, deep=True) self.set_collection_style(data, node) def set_collection_style(self, data, node): |