changeset: 104410:1be8cd7cee92 user: Serhiy Storchaka date: Sun Oct 09 15:37:43 2016 +0300 files: Modules/_testcapimodule.c description: Issue #28379: Removed redundant check. Patch by Xiang Zhang. diff -r 8ea51c7d985f -r 1be8cd7cee92 Modules/_testcapimodule.c --- a/Modules/_testcapimodule.c Sun Oct 09 14:54:12 2016 +0900 +++ b/Modules/_testcapimodule.c Sun Oct 09 15:37:43 2016 +0300 @@ -1869,10 +1869,6 @@ return NULL; } - if (PyUnicode_READY(to) < 0) { - return NULL; - } - if (!(to_copy = PyUnicode_New(PyUnicode_GET_LENGTH(to), PyUnicode_MAX_CHAR_VALUE(to)))) { return NULL;