mirror of
https://github.com/python/cpython.git
synced 2025-01-27 03:24:35 +08:00
_PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
This commit is contained in:
parent
68dd8ba010
commit
2cb16aa3cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user