3 def __init__(self
, tag
, value
, start_mark
, end_mark
):
6 self
.start_mark
= start_mark
7 self
.end_mark
= end_mark
10 if isinstance(value
, list):
16 value
= '<%d items>' % len(value
)
19 value
= repr(value
[:70]+u
' ... ')
22 return '%s(tag=%r, value=%s)' % (self
.__class
__.__name
__, self
.tag
, value
)
24 class ScalarNode(Node
):
27 class CollectionNode(Node
):
30 class SequenceNode(CollectionNode
):
33 class MappingNode(CollectionNode
):