summaryrefslogtreecommitdiff
path: root/constructor.py
diff options
context:
space:
mode:
Diffstat (limited to 'constructor.py')
-rw-r--r--constructor.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/constructor.py b/constructor.py
index 199129e..0a5db9b 100644
--- a/constructor.py
+++ b/constructor.py
@@ -1323,8 +1323,9 @@ class RoundTripConstructor(SafeConstructor):
if node.comment:
seqtyp._yaml_add_comment(node.comment[:2])
if len(node.comment) > 2:
- # this happens e.g. if you have a sequence element that is a flow-style mapping
- # and that has no EOL comment but a following commentline or empty line
+ # this happens e.g. if you have a sequence element that is a flow-style
+ # mapping and that has no EOL comment but a following commentline or
+ # empty line
seqtyp.yaml_end_comment_extend(node.comment[2], clear=True)
else:
# NEWCMNT