Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 73640:c4c1c8af0115
print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Sun, 20 Nov 2011 19:20:00 +0100 |
| parents | fa2f8dd077e0 |
| children | 37300a1df7d7 |
line wrap: on
line diff
--- a/Python/pythonrun.c Sun Nov 20 19:12:52 2011 +0100 +++ b/Python/pythonrun.c Sun Nov 20 19:20:00 2011 +0100 @@ -1641,7 +1641,7 @@ 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);
