mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Add a necessary call to PyUnicode_READY() (followup to ab5086539ab9)
This commit is contained in:
parent
7aec401966
commit
2242522fde
1 changed files with 3 additions and 0 deletions
|
@ -10201,6 +10201,9 @@ unicode_expandtabs(PyUnicodeObject *self, PyObject *args)
|
|||
if (!PyArg_ParseTuple(args, "|i:expandtabs", &tabsize))
|
||||
return NULL;
|
||||
|
||||
if (PyUnicode_READY(self) == -1)
|
||||
return NULL;
|
||||
|
||||
/* First pass: determine size of output string */
|
||||
src_len = PyUnicode_GET_LENGTH(self);
|
||||
i = j = line_pos = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue