summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 2175655..cb93395 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -12821,7 +12821,7 @@ _PyUnicodeWriter_Finish(_PyUnicodeWriter *writer)
writer->buffer = newbuffer;
}
assert(_PyUnicode_CheckConsistency(writer->buffer, 1));
- return writer->buffer;
+ return unicode_result_ready(writer->buffer);
}
void