cpython: f58159e5d52f (original) (raw)

--- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -13661,7 +13661,6 @@ struct unicode_writer_t { void *data; enum PyUnicode_Kind kind; Py_UCS4 maxchar;

{ writer->pos = 0;

if (maxchar > writer->maxchar) { /* resize + widen */

@@ -13716,7 +13712,7 @@ unicode_writer_prepare(struct unicode_wr Py_DECREF(writer->buffer); } else {

@@ -13740,7 +13736,7 @@ unicode_writer_write_str( maxchar = _PyUnicode_FindMaxChar(str, start, start + length); if (unicode_writer_prepare(writer, length, maxchar) == -1) return -1;