print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()

This commit is contained in:
Victor Stinner 2011-11-20 19:20:00 +01:00
parent b960b34577
commit e251d6d69d
1 changed files with 1 additions and 1 deletions

View File

@ -1641,7 +1641,7 @@ print_exception(PyObject *f, PyObject *value)
if (s == NULL)
err = -1;
else if (!PyUnicode_Check(s) ||
PyUnicode_GetSize(s) != 0)
PyUnicode_GetLength(s) != 0)
err = PyFile_WriteString(": ", f);
if (err == 0)
err = PyFile_WriteObject(s, f, Py_PRINT_RAW);