Commit 2cb16aa3 authored by Victor Stinner's avatar Victor Stinner

_PyUnicode_Writer() now also reuses Unicode singletons:

empty string and latin1 single character
parent 68dd8ba0
......@@ -12924,7 +12924,7 @@ _PyUnicodeWriter_Finish(_PyUnicodeWriter *writer)
writer->buffer = newbuffer;
}
assert(_PyUnicode_CheckConsistency(writer->buffer, 1));
return writer->buffer;
return unicode_result_ready(writer->buffer);
}
void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment