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 /tokens.py | |
parent | 4f10207f7b056437f08248a4adcbbfd382627747 (diff) | |
download | ruamel.yaml-7f2d1c34fccbde6cfc4e0d4eb0aa74f1ab34df73.tar.gz |
old end-of-list comment can have five positions0.17.10
Diffstat (limited to 'tokens.py')
-rw-r--r-- | tokens.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |