Close #16311: Use the _PyUnicodeWriter API in text decoders

* Remove unicode_widen(): replaced with _PyUnicodeWriter_Prepare()
 * Remove unicode_putchar(): replaced with
   PyUnicodeWriter_Prepare() + PyUnicode_WRITER()
 * When handling an decoding error, only overallocate the buffer by +25%
   instead of +100%
This commit is contained in:
Victor Stinner 2012-11-07 00:36:38 +01:00
parent 64e039af02
commit fc009eff9e
1 changed files with 331 additions and 327 deletions

File diff suppressed because it is too large Load Diff