Changeset 127 for pyyaml/branches/working-on-emitter/lib/yaml/events.py
- Timestamp:
- 03/26/06 17:57:23 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/branches/working-on-emitter/lib/yaml/events.py
r122 r127 21 21 22 22 class ScalarEvent(NodeEvent): 23 def __init__(self, anchor, tag, value, start_mark=None, end_mark=None): 23 def __init__(self, anchor, tag, value, start_mark=None, end_mark=None, 24 implicit=None, style=None): 24 25 self.anchor = anchor 25 26 self.tag = tag … … 27 28 self.start_mark = start_mark 28 29 self.end_mark = end_mark 30 self.implicit = implicit 31 self.style = style 29 32 30 33 class CollectionEvent(NodeEvent): 31 def __init__(self, anchor, tag, start_mark=None, end_mark=None): 34 def __init__(self, anchor, tag, start_mark=None, end_mark=None, 35 flow=None, compact=None): 32 36 self.anchor = anchor 33 37 self.tag = tag 34 38 self.start_mark = start_mark 35 39 self.end_mark = end_mark 40 self.flow = flow 41 self.compact = compact 36 42 37 43 class SequenceEvent(CollectionEvent): … … 45 51 46 52 class DocumentStartEvent(Event): 47 pass 53 def __init__(self, start_mark=None, end_mark=None, 54 indent=None, implicit=None, version=None, tags=None, 55 canonical=None): 56 self.start_mark = start_mark 57 self.end_mark = end_mark 58 self.indent = indent 59 self.implicit = implicit 60 self.version = version 61 self.tags = tags 62 self.canonical = canonical 48 63 49 64 class DocumentEndEvent(Event): … … 51 66 52 67 class StreamStartEvent(Event): 53 pass 68 def __init__(self, start_mark=None, end_mark=None, 69 encoding=None): 70 self.start_mark = start_mark 71 self.end_mark = end_mark 72 self.encoding = encoding 54 73 55 74 class StreamEndEvent(Event):
Note: See TracChangeset
for help on using the changeset viewer.
