diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-20 18:20:00 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-20 18:20:00 (GMT) |
commit | e251d6d69d27c0a9e4621fd98711db8958920409 (patch) | |
tree | 26e9e49d8bf68fcfea19d3fa779183fa376afe29 /Python | |
parent | b960b3457745453e117948d29736861c1a7a6edd (diff) | |
download | cpython-e251d6d69d27c0a9e4621fd98711db8958920409.zip cpython-e251d6d69d27c0a9e4621fd98711db8958920409.tar.gz cpython-e251d6d69d27c0a9e4621fd98711db8958920409.tar.bz2 |
print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 2 |
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); |