]> granicus.if.org Git - python/commit
Close #16311: Use the _PyUnicodeWriter API in text decoders
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Nov 2012 23:36:38 +0000 (00:36 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 6 Nov 2012 23:36:38 +0000 (00:36 +0100)
commitfc009eff9e6e7705bd3d3b68dc74619ac9079b05
treebda0d907feb37cd0d8c6246a193e2cab41aab462
parent64e039af029fff0edb0a59f8950dc1c64fa8a341
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%
Objects/unicodeobject.c