diff options
author | Eli Bendersky <eliben@gmail.com> | 2011-07-22 11:39:55 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2011-07-22 11:39:55 (GMT) |
commit | eaf312a0a45a8713d001ae4957366440f414e1a8 (patch) | |
tree | 057a3ebd284ff9ff94de0d163fb1cbde5f70bb0f | |
parent | 4929eb911bbbe3a39b68bdf0c7d58002e4d1c3f2 (diff) | |
download | cpython-eaf312a0a45a8713d001ae4957366440f414e1a8.zip cpython-eaf312a0a45a8713d001ae4957366440f414e1a8.tar.gz cpython-eaf312a0a45a8713d001ae4957366440f414e1a8.tar.bz2 |
Issue #12434: make StringIO.write error message consistent with Python 2.7 nomenclature
-rw-r--r-- | Modules/_io/stringio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/stringio.c b/Modules/_io/stringio.c index cf0f8b1..e3de751 100644 --- a/Modules/_io/stringio.c +++ b/Modules/_io/stringio.c @@ -464,7 +464,7 @@ stringio_write(stringio *self, PyObject *obj) 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; } |