Changeset 323 for pyyaml/trunk/lib/yaml/reader.py
- Timestamp:
- 12/28/08 15:41:41 (3 years ago)
- Files:
-
- 1 modified
-
pyyaml/trunk/lib/yaml/reader.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/lib/yaml/reader.py
r222 r323 75 75 return "unacceptable character #x%04x: %s\n" \ 76 76 " in \"%s\", position %d" \ 77 % ( ord(self.character), self.reason,77 % (self.character, self.reason, 78 78 self.name, self.position) 79 79 … … 176 176 character = match.group() 177 177 position = self.index+(len(self.buffer)-self.pointer)+match.start() 178 raise ReaderError(self.name, position, character,178 raise ReaderError(self.name, position, ord(character), 179 179 'unicode', "special characters are not allowed") 180 180
