diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-09 15:37:43 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-09 15:37:43 +0300 |
| commit | 22d60d62e6cb9dc76de4035ac214700522130632 (patch) | |
| tree | 4ab278dfee7569a64de1a8736e522e3e96b20d7a /Modules/_testcapimodule.c | |
| parent | 0ad475e9b981844680503de6594594fcbd4dad5b (diff) | |
| download | cpython-git-22d60d62e6cb9dc76de4035ac214700522130632.tar.gz | |
Issue #28379: Removed redundant check.
Patch by Xiang Zhang.
Diffstat (limited to 'Modules/_testcapimodule.c')
| -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 74422a2f8d..d651459891 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; |
