mirror of https://github.com/python/cpython
Issue #19513: Disable overallocation of the PyUnicodeWriter before the last write
This commit is contained in:
parent
58cf607d13
commit
4d3f109ad3
|
@ -387,6 +387,7 @@ list_repr(PyListObject *v)
|
|||
Py_DECREF(s);
|
||||
}
|
||||
|
||||
writer.overallocate = 0;
|
||||
if (_PyUnicodeWriter_WriteChar(&writer, ']') < 0)
|
||||
goto error;
|
||||
|
||||
|
|
Loading…
Reference in New Issue