Skip to content

Commit 22d60d6

Browse files
Issue python#28379: Removed redundant check.
Patch by Xiang Zhang.
1 parent 0ad475e commit 22d60d6

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Modules/_testcapimodule.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,10 +1869,6 @@ unicode_copycharacters(PyObject *self, PyObject *args)
18691869
return NULL;
18701870
}
18711871

1872-
if (PyUnicode_READY(to) < 0) {
1873-
return NULL;
1874-
}
1875-
18761872
if (!(to_copy = PyUnicode_New(PyUnicode_GET_LENGTH(to),
18771873
PyUnicode_MAX_CHAR_VALUE(to)))) {
18781874
return NULL;

0 commit comments

Comments
 (0)