summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/listobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 50538e1..45666fd 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -387,6 +387,7 @@ list_repr(PyListObject *v)
Py_DECREF(s);
}
+ writer.overallocate = 0;
if (_PyUnicodeWriter_WriteChar(&writer, ']') < 0)
goto error;