summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-12-01 02:18:59 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-12-01 02:18:59 (GMT)
commitb37b17423b294ee3bf5a28b8c358ca45cf681030 (patch)
treeeef378938969f815c83c515503727127aa0f82fc /Objects/stringlib
parent08b523a194a066e1e758e12594d8e423b57460a9 (diff)
downloadcpython-b37b17423b294ee3bf5a28b8c358ca45cf681030.zip
cpython-b37b17423b294ee3bf5a28b8c358ca45cf681030.tar.gz
cpython-b37b17423b294ee3bf5a28b8c358ca45cf681030.tar.bz2
Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)
Create an empty string with the new Unicode API.
Diffstat (limited to 'Objects/stringlib')
-rw-r--r--Objects/stringlib/unicode_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/unicode_format.h b/Objects/stringlib/unicode_format.h
index 7de5438..f05847a 100644
--- a/Objects/stringlib/unicode_format.h
+++ b/Objects/stringlib/unicode_format.h
@@ -79,7 +79,7 @@ Py_LOCAL_INLINE(PyObject *)
SubString_new_object_or_empty(SubString *str)
{
if (str->str == NULL) {
- return PyUnicode_FromUnicode(NULL, 0);
+ return PyUnicode_New(0, 0);
}
return SubString_new_object(str);
}