From: Serhiy Storchaka Date: Sun, 9 Oct 2016 12:37:43 +0000 (+0300) Subject: Issue #28379: Removed redundant check. X-Git-Tag: v3.7.0a1~2262 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22d60d62e6cb9dc76de4035ac214700522130632;p=thirdparty%2FPython%2Fcpython.git Issue #28379: Removed redundant check. Patch by Xiang Zhang. --- diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 74422a2f8db9..d651459891f7 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;