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/parser.py

    r52 r53  
    9999                    return True 
    100100        return False 
     101 
     102    def peek(self): 
     103        # Get the next event. 
     104        if self.current_event is None: 
     105            try: 
     106                self.current_event = self.event_generator.next() 
     107            except StopIteration: 
     108                pass 
     109        return self.current_event 
    101110 
    102111    def get(self): 
Note: See TracChangeset for help on using the changeset viewer.