mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user