mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
_PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
This commit is contained in:
parent
68dd8ba010
commit
2cb16aa3cb
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue