commit | 28928aef2ed23ae038ba2dd12b7adc51fa62805f | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Thu Oct 21 13:45:52 2010 +0000 |
committer | Georg Brandl <georg@python.org> | Thu Oct 21 13:45:52 2010 +0000 |
tree | 9baf5d9357167d4a70a0db8896f649e72c26776c | |
parent | 9583cac6337f9a5f2670fbe5e1f2e85aaad04522 [diff] |
#4829: better error message for invalid file mode
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index ff278cf..74009e3 100644 --- a/Modules/_io/fileio.c +++ b/Modules/_io/fileio.c
@@ -267,7 +267,8 @@ 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;