Ignore:
Timestamp:
03/18/06 08:37:09 (8 years ago)
Author:
xi
Message:

Back to work :). Rename markers to marks.

File:
1 edited

Legend:

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

    r53 r116  
    11 
    22class Event: 
    3     def __init__(self, start_marker, end_marker): 
    4         self.start_marker = start_marker 
    5         self.end_marker = end_marker 
     3    def __init__(self, start_mark, end_mark): 
     4        self.start_mark = start_mark 
     5        self.end_mark = end_mark 
    66    def __repr__(self): 
    77        attributes = [key for key in self.__dict__ 
    8                 if not key.endswith('_marker')] 
     8                if not key.endswith('_mark')] 
    99        attributes.sort() 
    1010        arguments = ', '.join(['%s=%r' % (key, getattr(self, key)) 
     
    1313 
    1414class NodeEvent(Event): 
    15     def __init__(self, anchor, start_marker, end_marker): 
     15    def __init__(self, anchor, start_mark, end_mark): 
    1616        self.anchor = anchor 
    17         self.start_marker = start_marker 
    18         self.end_marker = end_marker 
     17        self.start_mark = start_mark 
     18        self.end_mark = end_mark 
    1919 
    2020class AliasEvent(NodeEvent): 
     
    2222 
    2323class ScalarEvent(NodeEvent): 
    24     def __init__(self, anchor, tag, value, start_marker, end_marker): 
     24    def __init__(self, anchor, tag, value, start_mark, end_mark): 
    2525        self.anchor = anchor 
    2626        self.tag = tag 
    2727        self.value = value 
    28         self.start_marker = start_marker 
    29         self.end_marker = end_marker 
     28        self.start_mark = start_mark 
     29        self.end_mark = end_mark 
    3030 
    3131class CollectionEvent(NodeEvent): 
    32     def __init__(self, anchor, tag, start_marker, end_marker): 
     32    def __init__(self, anchor, tag, start_mark, end_mark): 
    3333        self.anchor = anchor 
    3434        self.tag = tag 
    35         self.start_marker = start_marker 
    36         self.end_marker = end_marker 
     35        self.start_mark = start_mark 
     36        self.end_mark = end_mark 
    3737 
    3838class SequenceEvent(CollectionEvent): 
Note: See TracChangeset for help on using the changeset viewer.