summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 48edad8..22243ea 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -612,9 +612,9 @@ set_repr(PySetObject *so)
*u++ = '{';
/* Omit the brackets from the listrepr */
Py_UNICODE_COPY(u, PyUnicode_AS_UNICODE(listrepr)+1,
- PyUnicode_GET_SIZE(listrepr)-2);
+ newsize-2);
u += newsize-2;
- *u++ = '}';
+ *u = '}';
}
Py_DECREF(listrepr);
if (Py_TYPE(so) != &PySet_Type) {