]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #28400: Removed uncessary checks in unicode_char and resize_copy.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 9 Oct 2016 20:44:48 +0000 (23:44 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 9 Oct 2016 20:44:48 +0000 (23:44 +0300)
commit2e58f1a52a967c8c5a8c61ac2334cf659f6e4c82
tree40cfbd93cd49695a9a5751f7ff5eda6d40d5a1c3
parent1aa85a9eeac3f0ec5c6015fa1317e7d56690ac9a
Issue #28400: Removed uncessary checks in unicode_char and resize_copy.

1. In resize_copy we don't need to PyUnicode_READY(unicode) since when
it's not PyUnicode_WCHAR_KIND it should be ready.
2. In unicode_char, PyUnicode_1BYTE_KIND is handled by get_latin1_char.

Patch by Xiang Zhang.
Objects/unicodeobject.c