summaryrefslogtreecommitdiff
path: root/tokens.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2021-06-24 10:34:54 +0200
committerAnthon van der Neut <anthon@mnt.org>2021-06-24 10:34:54 +0200
commit7f2d1c34fccbde6cfc4e0d4eb0aa74f1ab34df73 (patch)
tree9d02e3216a795a17881446c137e13ac4721e1a94 /tokens.py
parent4f10207f7b056437f08248a4adcbbfd382627747 (diff)
downloadruamel.yaml-7f2d1c34fccbde6cfc4e0d4eb0aa74f1ab34df73.tar.gz
old end-of-list comment can have five positions0.17.10
Diffstat (limited to 'tokens.py')
-rw-r--r--tokens.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokens.py b/tokens.py
index 13b25a8..bc302ba 100644
--- a/tokens.py
+++ b/tokens.py
@@ -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