commit | e251d6d69d27c0a9e4621fd98711db8958920409 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Sun Nov 20 19:20:00 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Sun Nov 20 19:20:00 2011 +0100 |
tree | 26e9e49d8bf68fcfea19d3fa779183fa376afe29 | |
parent | b960b3457745453e117948d29736861c1a7a6edd [diff] |
print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 0c267fc..389bcd0 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c
@@ -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);