diff options
author | Anthon van der Neut <anthon@mnt.org> | 2021-06-24 10:34:54 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2021-06-24 10:34:54 +0200 |
commit | 7f2d1c34fccbde6cfc4e0d4eb0aa74f1ab34df73 (patch) | |
tree | 9d02e3216a795a17881446c137e13ac4721e1a94 | |
parent | 4f10207f7b056437f08248a4adcbbfd382627747 (diff) | |
download | ruamel.yaml-7f2d1c34fccbde6cfc4e0d4eb0aa74f1ab34df73.tar.gz |
old end-of-list comment can have five positions0.17.10
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | README.rst | 8 | ||||
-rw-r--r-- | __init__.py | 5 | ||||
-rw-r--r-- | _doc/_static/pypi.svg | 2 | ||||
-rw-r--r-- | tokens.py | 2 |
5 files changed, 15 insertions, 6 deletions
@@ -1,3 +1,7 @@ +[0, 17, 10]: 2021-06-24 + - fix issue 388, token with old comment structure != two elements + (reported by `Dimitrios Bariamis <https://sourceforge.net/u/dbdbc/>`__) + [0, 17, 9]: 2021-06-10 - fix issue with updating CommentedMap (reported by sri on `StackOverlow <https://stackoverflow.com/q/67911659/1307905>`__) @@ -4,8 +4,8 @@ ruamel.yaml ``ruamel.yaml`` is a YAML 1.2 loader/dumper package for Python. -:version: 0.17.9 -:updated: 2021-06-10 +:version: 0.17.10 +:updated: 2021-06-24 :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.10 (2021-06-24): + - fix issue 388, token with old comment structure != two elements + (reported by `Dimitrios Bariamis <https://sourceforge.net/u/dbdbc/>`__) + 0.17.9 (2021-06-10): - fix issue with updating CommentedMap (reported by sri on `StackOverlow <https://stackoverflow.com/q/67911659/1307905>`__) diff --git a/__init__.py b/__init__.py index 9e4c77d..e158068 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, 9), - __version__='0.17.9', + version_info=(0, 17, 10), + __version__='0.17.10', 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 @@ -23,6 +23,7 @@ _package_data = dict( 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Text Processing :: Markup', diff --git a/_doc/_static/pypi.svg b/_doc/_static/pypi.svg index ad434b7..2b0228f 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.9</text><text x="585" y="140" transform="scale(.1)" textLength="430">0.17.9</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.10</text><text x="585" y="140" transform="scale(.1)" textLength="430">0.17.10</text></g> </svg> @@ -66,7 +66,7 @@ class Token: if not hasattr(self, '_comment'): self._comment = [None, None] else: - assert len(self._comment) == 2 # make sure it is version 0 + assert len(self._comment) in [2, 5] # make sure it is version 0 # if isinstance(comment, CommentToken): # if comment.value.startswith('# C09'): # raise |