Skip to content

Commit

Permalink
python#4829: better error message for invalid file mode
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Oct 21, 2010
1 parent 9583cac commit 28928ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/_io/fileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 28928ae

Please sign in to comment.