]> granicus.if.org Git - python/commitdiff
Issue #12434: make StringIO.write error message consistent with Python 2.7 nomenclature
authorEli Bendersky <eliben@gmail.com>
Fri, 22 Jul 2011 11:39:55 +0000 (14:39 +0300)
committerEli Bendersky <eliben@gmail.com>
Fri, 22 Jul 2011 11:39:55 +0000 (14:39 +0300)
Modules/_io/stringio.c

index cf0f8b15a6c778e24dff2239ea583a6aa5374d8e..e3de75155d0739fe3ae031d3ffce9a5c240d5cbb 100644 (file)
@@ -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;
     }