summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-20 18:20:00 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-20 18:20:00 (GMT)
commite251d6d69d27c0a9e4621fd98711db8958920409 (patch)
tree26e9e49d8bf68fcfea19d3fa779183fa376afe29
parentb960b3457745453e117948d29736861c1a7a6edd (diff)
downloadcpython-e251d6d69d27c0a9e4621fd98711db8958920409.zip
cpython-e251d6d69d27c0a9e4621fd98711db8958920409.tar.gz
cpython-e251d6d69d27c0a9e4621fd98711db8958920409.tar.bz2
print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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);