Ignore:
Timestamp:
04/03/06 14:20:25 (9 years ago)
Author:
xi
Message:

Add style information to events generated by Parser.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/tests/test_emitter.py

    r129 r130  
    3333            mapping = self.construct_mapping(node) 
    3434        class_name = str(node.tag[1:])+'Event' 
    35         if class_name in ['AliasEvent', 'ScalarEvent', 'SequenceEvent', 'MappingEvent']: 
     35        if class_name in ['AliasEvent', 'ScalarEvent', 'SequenceStartEvent', 'MappingStartEvent']: 
    3636            mapping.setdefault('anchor', None) 
    37         if class_name in ['ScalarEvent', 'SequenceEvent', 'MappingEvent']: 
     37        if class_name in ['ScalarEvent', 'SequenceStartEvent', 'MappingStartEvent']: 
    3838            mapping.setdefault('tag', None) 
    3939        if class_name == 'ScalarEvent': 
Note: See TracChangeset for help on using the changeset viewer.