diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-05-09 01:24:14 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-05-09 01:24:14 (GMT) |
commit | f59c28c93007d3d7e7340703aa5d2360d285abed (patch) | |
tree | 3a9441fda0aebadf04ea4e1fbcfe7639840d706b /Objects/unicodeobject.c | |
parent | 5d73c178a80392e876f5cd23fd628a6c8fc5955e (diff) | |
download | cpython-f59c28c93007d3d7e7340703aa5d2360d285abed.zip cpython-f59c28c93007d3d7e7340703aa5d2360d285abed.tar.gz cpython-f59c28c93007d3d7e7340703aa5d2360d285abed.tar.bz2 |
unicode_writer_finish() checks string consistency
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 0722312..2c8378e 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; } |