Skip to content

Commit 2750016

Browse files
Update Objects/unicodeobject.c
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 7618a2b commit 2750016

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Objects/unicodeobject.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,6 @@ resize_compact(PyObject *unicode, Py_ssize_t length)
11681168
if (!unicode_modifiable(unicode)) {
11691169
PyObject *copy = resize_copy(unicode, length);
11701170
if (copy == NULL) {
1171-
PyErr_NoMemory();
11721171
return NULL;
11731172
}
11741173
Py_DECREF(unicode);

0 commit comments

Comments
 (0)