Ignore:
Timestamp:
02/20/06 15:30:09 (9 years ago)
Author:
xi
Message:

Implement Composer and BaseResolver?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pyyaml3000/lib/yaml/events.py

    r51 r53  
    1313 
    1414class NodeEvent(Event): 
    15     def __init__(self, anchor, tag, start_marker, end_marker): 
     15    def __init__(self, anchor, start_marker, end_marker): 
    1616        self.anchor = anchor 
    17         self.tag = tag 
    1817        self.start_marker = start_marker 
    1918        self.end_marker = end_marker 
    2019 
    2120class AliasEvent(NodeEvent): 
    22     def __init__(self, name, start_marker, end_marker): 
    23         self.name = name 
    24         self.start_marker = start_marker 
    25         self.end_marker = end_marker 
     21    pass 
    2622 
    2723class ScalarEvent(NodeEvent): 
     
    3430 
    3531class CollectionEvent(NodeEvent): 
    36     pass 
     32    def __init__(self, anchor, tag, start_marker, end_marker): 
     33        self.anchor = anchor 
     34        self.tag = tag 
     35        self.start_marker = start_marker 
     36        self.end_marker = end_marker 
    3737 
    3838class SequenceEvent(CollectionEvent): 
Note: See TracChangeset for help on using the changeset viewer.