[Python-checkins] cpython (2.7): Issue #12434: make StringIO.write error message consistent with Python 2.7
eli.bendersky
python-checkins at python.org
Fri Jul 22 13:40:06 CEST 2011
http://hg.python.org/cpython/rev/0752215f9f91
changeset: 71450:0752215f9f91
branch: 2.7
parent: 71447:f5a7d413638d
user: Eli Bendersky <eliben at gmail.com>
date: Fri Jul 22 14:39:55 2011 +0300
summary:
Issue #12434: make StringIO.write error message consistent with Python 2.7 nomenclature
files:
Modules/_io/stringio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c
--- a/Modules/_io/stringio.c
+++ b/Modules/_io/stringio.c
@@ -464,7 +464,7 @@
CHECK_INITIALIZED(self);
if (!PyUnicode_Check(obj)) {
- PyErr_Format(PyExc_TypeError, "string argument expected, got '%s'",
+ PyErr_Format(PyExc_TypeError, "unicode argument expected, got '%s'",
Py_TYPE(obj)->tp_name);
return NULL;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list