mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)
Create an empty string with the new Unicode API.
This commit is contained in:
parent
08b523a194
commit
b37b17423b
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue