Ignore:
Timestamp:
04/10/06 20:34:16 (8 years ago)
Author:
xi
Message:

Implement yaml.dump().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib/yaml/nodes.py

    r132 r133  
    2424class ScalarNode(Node): 
    2525    id = 'scalar' 
    26     def __init__(self, tag, value, implicit, start_mark, end_mark): 
     26    def __init__(self, tag, value, implicit, 
     27            start_mark=None, end_mark=None, style=None): 
    2728        self.tag = tag 
    2829        self.value = value 
     
    3031        self.start_mark = start_mark 
    3132        self.end_mark = end_mark 
     33        self.style = style 
    3234 
    3335class CollectionNode(Node): 
    34     pass 
     36    def __init__(self, tag, value, 
     37            start_mark=None, end_mark=None, flow_style=None): 
     38        self.tag = tag 
     39        self.value = value 
     40        self.start_mark = start_mark 
     41        self.end_mark = end_mark 
     42        self.flow_style = flow_style 
    3543 
    3644class SequenceNode(CollectionNode): 
Note: See TracChangeset for help on using the changeset viewer.