Ignore:
Timestamp:
04/15/06 19:54:52 (9 years ago)
Author:
xi
Message:

Major refactoring.

File:
1 edited

Legend:

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

    r133 r136  
    3434 
    3535class StreamStartEvent(Event): 
    36     def __init__(self, start_mark=None, end_mark=None, 
    37             encoding=None, line_break=None, canonical=None, 
    38             indent=None, width=None, allow_unicode=None): 
     36    def __init__(self, start_mark=None, end_mark=None, encoding=None): 
    3937        self.start_mark = start_mark 
    4038        self.end_mark = end_mark 
    4139        self.encoding = encoding 
    42         self.line_break = line_break 
    43         self.canonical = canonical 
    44         self.indent = indent 
    45         self.width = width 
    46         self.allow_unicode = allow_unicode 
    4740 
    4841class StreamEndEvent(Event): 
     
    6962 
    7063class ScalarEvent(NodeEvent): 
    71     def __init__(self, anchor, tag, value, start_mark=None, end_mark=None, 
    72             implicit=None, style=None): 
     64    def __init__(self, anchor, tag, implicit, value, 
     65            start_mark=None, end_mark=None, style=None): 
    7366        self.anchor = anchor 
    7467        self.tag = tag 
     68        self.implicit = implicit 
    7569        self.value = value 
    7670        self.start_mark = start_mark 
    7771        self.end_mark = end_mark 
    78         self.implicit = implicit 
    7972        self.style = style 
    8073 
Note: See TracChangeset for help on using the changeset viewer.