Ignore:
Timestamp:
08/30/09 15:32:07 (5 years ago)
Author:
xi
Message:

Fixed Python 3.1 incompatibility issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib3/yaml/reader.py

    r328 r361  
    157157                            'strict', self.eof) 
    158158                except UnicodeDecodeError as exc: 
    159                     character = exc.object[exc.start] 
     159                    character = self.raw_buffer[exc.start] 
    160160                    if self.stream is not None: 
    161161                        position = self.stream_pointer-len(self.raw_buffer)+exc.start 
Note: See TracChangeset for help on using the changeset viewer.