Ignore:
Timestamp:
02/18/06 18:52:18 (8 years ago)
Author:
xi
Message:

Scanner is complete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pyyaml3000/lib/yaml/reader.py

    r47 r48  
    159159            self.determine_encoding() 
    160160 
    161     def peek(self, length=1): 
     161    def peek(self, index=0): 
     162        if self.pointer+index+1 >= len(self.buffer): 
     163            self.update(index+1) 
     164        return self.buffer[self.pointer+index] 
     165 
     166    def prefix(self, length=1): 
    162167        if self.pointer+length >= len(self.buffer): 
    163168            self.update(length) 
Note: See TracChangeset for help on using the changeset viewer.