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

Add style information to events generated by Parser.

File:
1 edited

Legend:

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

    r118 r130  
    244244                self.events.append(ScalarEvent(anchor, tag, self.get_value(), None, None)) 
    245245            elif self.test_token(FlowSequenceStartToken): 
    246                 self.events.append(SequenceEvent(anchor, tag, None, None)) 
     246                self.events.append(SequenceStartEvent(anchor, tag, None, None)) 
    247247                self.parse_sequence() 
    248248            elif self.test_token(FlowMappingStartToken): 
    249                 self.events.append(MappingEvent(anchor, tag, None, None)) 
     249                self.events.append(MappingStartEvent(anchor, tag, None, None)) 
    250250                self.parse_mapping() 
    251251            else: 
     
    262262                    self.parse_node() 
    263263        self.consume_token(FlowSequenceEndToken) 
    264         self.events.append(CollectionEndEvent(None, None)) 
     264        self.events.append(SequenceEndEvent(None, None)) 
    265265 
    266266    # mapping: MAPPING-START (map_entry (ENTRY map_entry)*)? ENTRY? MAPPING-END 
     
    274274                    self.parse_map_entry() 
    275275        self.consume_token(FlowMappingEndToken) 
    276         self.events.append(CollectionEndEvent(None, None)) 
     276        self.events.append(MappingEndEvent(None, None)) 
    277277 
    278278    # map_entry: KEY node VALUE node 
Note: See TracChangeset for help on using the changeset viewer.