diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-11 21:53:09 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-11 21:53:09 +0100 |
commit | a1d12bb1197d9335fcb62aad7fb0df56098197ac (patch) | |
tree | 2d87a6cf840edc35eb0fc9f113580c9ff95865b7 /Tools/gdb/libpython.py | |
parent | 382955ff4e84276c4d52751154001f3cfa5b938d (diff) | |
download | cpython-git-a1d12bb1197d9335fcb62aad7fb0df56098197ac.tar.gz |
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
Diffstat (limited to 'Tools/gdb/libpython.py')
0 files changed, 0 insertions, 0 deletions