Commit 28928aef authored by Georg Brandl's avatar Georg Brandl

#4829: better error message for invalid file mode

parent 9583cac6
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment