Ignore:
Timestamp:
02/16/06 17:22:59 (8 years ago)
Author:
xi
Message:

Some renaming.

File:
1 edited

Legend:

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

    r44 r46  
    4040# flow_mapping_entry: { ALIAS ANCHOR TAG SCALAR FLOW-SEQUENCE-START FLOW-MAPPING-START KEY } 
    4141 
    42 from scanner import * 
    43  
    44 class Error(Exception): 
     42from error import YAMLError 
     43from tokens import * 
     44 
     45class ParserError(YAMLError): 
    4546    pass 
    4647 
     
    7778class Parser: 
    7879 
    79     def __init__(self, source, data): 
    80         self.scanner = Scanner(source, data) 
     80    def __init__(self, scanner): 
     81        self.scanner = scanner 
    8182 
    8283    def is_token(self, *choices): 
Note: See TracChangeset for help on using the changeset viewer.