]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Move the slowest UTF-8 decoder to its own subfunction
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 11 Dec 2011 19:09:03 +0000 (20:09 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 11 Dec 2011 19:09:03 +0000 (20:09 +0100)
commit785938eebdcf39d6ee54005e38afc474fdb5e1ea
tree14c1699fca3f508d3f27b9a5af9bbc196fa67f14
parent84def3774d2079ea2a812e0220507ff0e27247e7
Move the slowest UTF-8 decoder to its own subfunction

 * Create decode_utf8_errors()
 * Reuse unicode_fromascii()
 * decode_utf8_errors() doesn't refit at the beginning
 * Remove refit_partial_string(), use unicode_adjust_maxchar() instead
Objects/unicodeobject.c