From 06d22dfdbdf9bac2d3443be3e57f17ac21798eaa Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Wed, 21 Nov 2018 09:40:46 +0100 Subject: resolves issue with anchors specified deeper in the data structure than aliases --- CHANGES | 8 ++++++++ README.rst | 8 ++++++-- __init__.py | 4 ++-- _doc/_static/pypi.svg | 2 +- constructor.py | 2 +- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index e80f232..dad1a5c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,11 @@ +[0, 15, 79]: 2018-11-21 + - fix issue with anchors nested deeper than alias (reported by gaFF on + `StackOverflow `__) + +[0, 15, 79]: 2018-11-21 + - fix issue with anchors nested deeper than alias (reported by gaFF on + `StackOverflow `__) + [0, 15, 78]: 2018-11-15 - fix setup issue for 3.8 (reported by `Sidney Kuyateh `__) diff --git a/README.rst b/README.rst index 0b6dcc1..69eed0c 100644 --- a/README.rst +++ b/README.rst @@ -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 `__) + 0.15.78 (2018-11-15): - fix setup issue for 3.8 (reported by `Sidney Kuyateh `__) 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 @@ - pypipypi0.15.780.15.78 + pypipypi0.15.790.15.79 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): -- cgit v1.2.1