]> granicus.if.org Git - python/commit
Call directly PyUnicode_DecodeUTF8Stateful() instead of PyUnicode_DecodeUTF8()
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 11 Dec 2011 20:53:09 +0000 (21:53 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 11 Dec 2011 20:53:09 +0000 (21:53 +0100)
commita1d12bb1197d9335fcb62aad7fb0df56098197ac
tree2d87a6cf840edc35eb0fc9f113580c9ff95865b7
parent382955ff4e84276c4d52751154001f3cfa5b938d
Call directly PyUnicode_DecodeUTF8Stateful() instead of PyUnicode_DecodeUTF8()

 * Remove micro-optimization from PyUnicode_FromStringAndSize():
   PyUnicode_DecodeUTF8Stateful() has already these optimizations (for size=0
   and one ascii char).
 * Rename utf8_max_char_size_and_char_count() to utf8_scanner(), and remove an
   useless variable
Objects/unicodeobject.c