mirror of
https://github.com/python/cpython.git
synced 2025-08-29 21:25:01 +00:00
unicode_writer_finish() checks string consistency
This commit is contained in:
parent
5d73c178a8
commit
f59c28c930
2 changed files with 5 additions and 0 deletions
|
@ -13320,6 +13320,7 @@ unicode_writer_finish(unicode_writer_t *writer)
|
|||
Py_DECREF(writer->buffer);
|
||||
return NULL;
|
||||
}
|
||||
assert(_PyUnicode_CheckConsistency(writer->buffer, 1));
|
||||
return writer->buffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue