From 9b29aec11f81bdf6f29c487f2c69bf6943dde6b9 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Thu, 10 Jun 2021 08:13:51 +0200 Subject: issue updating CommentedMap with dict introduced in 0.16.13 --- CHANGES | 4 ++++ README.rst | 8 ++++++-- __init__.py | 4 ++-- _doc/_static/pypi.svg | 2 +- comments.py | 2 +- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index f893731..0bfc111 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +[0, 17, 9]: 2021-06-10 + - fix issue with updating CommentedMap (reported by sri on + `StackOverlow `__) + [0, 17, 8]: 2021-06-09 - fix for issue 387 where templated anchors on tagged object did get set resulting in potential id reuse. (reported by `Artem Ploujnikov diff --git a/README.rst b/README.rst index 6ca30d4..e40dbdf 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.17.8 -:updated: 2021-06-09 +:version: 0.17.9 +:updated: 2021-06-10 :documentation: http://yaml.readthedocs.io :repository: https://sourceforge.net/projects/ruamel-yaml/ :pypi: https://pypi.org/project/ruamel.yaml/ @@ -65,6 +65,10 @@ ChangeLog .. should insert NEXT: at the beginning of line for next key (with empty line) +0.17.9 (2021-06-10): + - fix issue with updating CommentedMap (reported by sri on + `StackOverlow `__) + 0.17.8 (2021-06-09): - fix for issue 387 where templated anchors on tagged object did get set resulting in potential id reuse. (reported by `Artem Ploujnikov diff --git a/__init__.py b/__init__.py index 45526be..9e4c77d 100644 --- a/__init__.py +++ b/__init__.py @@ -5,8 +5,8 @@ if False: # MYPY _package_data = dict( full_package_name='ruamel.yaml', - version_info=(0, 17, 8), - __version__='0.17.8', + version_info=(0, 17, 9), + __version__='0.17.9', 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 0f34486..ad434b7 100644 --- a/_doc/_static/pypi.svg +++ b/_doc/_static/pypi.svg @@ -1 +1 @@ - pypipypi0.17.80.17.8 + pypipypi0.17.90.17.9 diff --git a/comments.py b/comments.py index 1e117e7..4b6f03e 100644 --- a/comments.py +++ b/comments.py @@ -868,7 +868,7 @@ class CommentedMap(ordereddict, CommentedBase): for x in vals[0]: self[x] = vals[0][x] try: - self._ok.update(vals.keys()) # type: ignore + self._ok.update(vals[0].keys()) # type: ignore except AttributeError: # assume one argument that is a list/tuple of two element lists/tuples for x in vals[0]: -- cgit v1.2.1