Kaydet (Commit) 2242522f authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Add a necessary call to PyUnicode_READY() (followup to ab5086539ab9)

üst 7aec4019
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment