]> granicus.if.org Git - python/commitdiff
Issue #28379: Removed redundant check.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 9 Oct 2016 12:37:43 +0000 (15:37 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 9 Oct 2016 12:37:43 +0000 (15:37 +0300)
Patch by Xiang Zhang.

Modules/_testcapimodule.c

index 74422a2f8db97005d3fc3f7a45a9bb2b8d45b713..d651459891f7e49fadbfec50d3710e0c231bf296 100644 (file)
@@ -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;