From 22d60d62e6cb9dc76de4035ac214700522130632 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 9 Oct 2016 15:37:43 +0300 Subject: Issue #28379: Removed redundant check. Patch by Xiang Zhang. --- Modules/_testcapimodule.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 74422a2..d651459 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -1869,10 +1869,6 @@ unicode_copycharacters(PyObject *self, PyObject *args) 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; -- cgit v0.12