Changeset 257 for pyyaml/trunk/ext/_yaml.pyx
- Timestamp:
- 07/26/07 15:10:44 (5 years ago)
- Files:
-
- 1 modified
-
pyyaml/trunk/ext/_yaml.pyx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/ext/_yaml.pyx
r233 r257 282 282 cdef object _parser_error(self): 283 283 if self.parser.error == YAML_MEMORY_ERROR: 284 r aiseMemoryError284 return MemoryError 285 285 elif self.parser.error == YAML_READER_ERROR: 286 r aiseReaderError(self.stream_name, self.parser.problem_offset,286 return ReaderError(self.stream_name, self.parser.problem_offset, 287 287 self.parser.problem_value, '?', self.parser.problem) 288 288 elif self.parser.error == YAML_SCANNER_ERROR \ … … 610 610 implicit = True 611 611 flow_style = None 612 if event.data.mapping_start.style == YAML_FLOW_ SEQUENCE_STYLE:612 if event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE: 613 613 flow_style = True 614 elif event.data.mapping_start.style == YAML_BLOCK_ SEQUENCE_STYLE:614 elif event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE: 615 615 flow_style = False 616 616 return MappingStartEvent(anchor, tag, implicit,
