summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-03-06 18:29:09 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-03-06 18:29:09 (GMT)
commitfb84b5d48d111121bbc9e1782ddbab361c0bf1a5 (patch)
treee303c9fe2aa909c1cac83fe5e6b61dc49b7f6f80 /Objects
parentbe0c028eb50f64ea69baf612e4d5c21fef875a8f (diff)
parent2cb16aa3cb31c2c0620df3c806d10782f84c94fb (diff)
downloadcpython-fb84b5d48d111121bbc9e1782ddbab361c0bf1a5.zip
cpython-fb84b5d48d111121bbc9e1782ddbab361c0bf1a5.tar.gz
cpython-fb84b5d48d111121bbc9e1782ddbab361c0bf1a5.tar.bz2
(Merge 3.3) _PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
Diffstat (limited to 'Objects')
-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