diff options
author | Anthon van der Neut <anthon@mnt.org> | 2021-06-10 08:13:51 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2021-06-10 08:13:51 +0200 |
commit | 9b29aec11f81bdf6f29c487f2c69bf6943dde6b9 (patch) | |
tree | faa62da6fee0ae339c388fd31c7935a2e19229fe | |
parent | d523887b312e8d74d0c26ad18b8efdb2833d0ff1 (diff) | |
download | ruamel.yaml-9b29aec11f81bdf6f29c487f2c69bf6943dde6b9.tar.gz |
issue updating CommentedMap with dict introduced in 0.16.130.17.9
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | README.rst | 8 | ||||
-rw-r--r-- | __init__.py | 4 | ||||
-rw-r--r-- | _doc/_static/pypi.svg | 2 | ||||
-rw-r--r-- | comments.py | 2 |
5 files changed, 14 insertions, 6 deletions
@@ -1,3 +1,7 @@ +[0, 17, 9]: 2021-06-10 + - fix issue with updating CommentedMap (reported by sri on + `StackOverlow <https://stackoverflow.com/q/67911659/1307905>`__) + [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 @@ -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 <https://stackoverflow.com/q/67911659/1307905>`__) + 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 @@ -<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.17.8</text><text x="585" y="140" transform="scale(.1)" textLength="430">0.17.8</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.17.9</text><text x="585" y="140" transform="scale(.1)" textLength="430">0.17.9</text></g> </svg> 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]: |