Changeset 46 for branches/pyyaml3000/lib/yaml/parser.py
- Timestamp:
- 02/16/06 17:22:59 (7 years ago)
- File:
-
- 1 edited
-
branches/pyyaml3000/lib/yaml/parser.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pyyaml3000/lib/yaml/parser.py
r44 r46 40 40 # flow_mapping_entry: { ALIAS ANCHOR TAG SCALAR FLOW-SEQUENCE-START FLOW-MAPPING-START KEY } 41 41 42 from scanner import * 43 44 class Error(Exception): 42 from error import YAMLError 43 from tokens import * 44 45 class ParserError(YAMLError): 45 46 pass 46 47 … … 77 78 class Parser: 78 79 79 def __init__(self, s ource, data):80 self.scanner = Scanner(source, data)80 def __init__(self, scanner): 81 self.scanner = scanner 81 82 82 83 def is_token(self, *choices):
Note: See TracChangeset
for help on using the changeset viewer.
