[Python-checkins] cpython: print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()
victor.stinner
python-checkins at python.org
Sun Nov 20 22:53:26 CET 2011
http://hg.python.org/cpython/rev/c4c1c8af0115
changeset: 73640:c4c1c8af0115
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Sun Nov 20 19:20:00 2011 +0100
summary:
print_exception() uses PyUnicode_GetLength() instead of PyUnicode_GetSize()
files:
Python/pythonrun.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
--- 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);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list