From: Victor Stinner Date: Sun, 20 Nov 2011 18:20:00 +0000 (+0100) Subject: print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize() X-Git-Tag: v3.3.0a1~792 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e251d6d69d27c0a9e4621fd98711db8958920409;p=python print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize() --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 0c267fc832..389bcd08ec 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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);