[issue28400] Remove uncessary checks in unicode_char and resize_copy

2016-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue28400] Remove uncessary checks in unicode_char and resize_copy

2016-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61e454a1c9d7 by Serhiy Storchaka in branch 'default': Issue #28400: Removed uncessary checks in unicode_char and resize_copy. https://hg.python.org/cpython/rev/61e454a1c9d7 -- nosy: +python-dev ___ Python

[issue28400] Remove uncessary checks in unicode_char and resize_copy

2016-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: -> serhiy.storchaka stage: patch review -> commit review ___ Python tracker ___ __

[issue28400] Remove uncessary checks in unicode_char and resize_copy

2016-10-09 Thread Xiang Zhang
New submission from Xiang Zhang: In resize_copy we don't need to PyUnicode_READY(unicode) since when it's not PyUnicode_WCHAR_KIND it should be ready. In unicode_char, PyUnicode_1BYTE_KIND is handled by get_latin1_char. -- components: Interpreter Core files: unicode_char_and_resize_cop