diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-09 12:37:43 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-09 12:37:43 (GMT) |
commit | 22d60d62e6cb9dc76de4035ac214700522130632 (patch) | |
tree | 4ab278dfee7569a64de1a8736e522e3e96b20d7a /Modules | |
parent | 0ad475e9b981844680503de6594594fcbd4dad5b (diff) | |
download | cpython-22d60d62e6cb9dc76de4035ac214700522130632.zip cpython-22d60d62e6cb9dc76de4035ac214700522130632.tar.gz cpython-22d60d62e6cb9dc76de4035ac214700522130632.tar.bz2 |
Issue #28379: Removed redundant check.
Patch by Xiang Zhang.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testcapimodule.c | 4 |
1 files changed, 0 insertions, 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; |