diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index ff278cfb1af..74009e3657d 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c @@ -267,7 +267,8 @@ fileio_init(PyObject *oself, PyObject *args, PyObject *kwds) if (rwa) { bad_mode: PyErr_SetString(PyExc_ValueError, - "Must have exactly one of read/write/append mode"); + "Must have exactly one of read/write/append " + "mode and at most one plus"); goto error; } rwa = 1;