Ignore:
Timestamp:
07/26/07 15:10:44 (7 years ago)
Author:
xi
Message:

Fixed _yaml.pyx to work with the latest Pyrex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/ext/_yaml.pyx

    r233 r257  
    282282    cdef object _parser_error(self): 
    283283        if self.parser.error == YAML_MEMORY_ERROR: 
    284             raise MemoryError 
     284            return MemoryError 
    285285        elif self.parser.error == YAML_READER_ERROR: 
    286             raise ReaderError(self.stream_name, self.parser.problem_offset, 
     286            return ReaderError(self.stream_name, self.parser.problem_offset, 
    287287                    self.parser.problem_value, '?', self.parser.problem) 
    288288        elif self.parser.error == YAML_SCANNER_ERROR    \ 
     
    610610                implicit = True 
    611611            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: 
    613613                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: 
    615615                flow_style = False 
    616616            return MappingStartEvent(anchor, tag, implicit, 
Note: See TracChangeset for help on using the changeset viewer.