[Python-checkins] r85773 - python/branches/py3k/Modules/_io/fileio.c

georg.brandl python-checkins at python.org
Thu Oct 21 15:45:52 CEST 2010


Author: georg.brandl
Date: Thu Oct 21 15:45:52 2010
New Revision: 85773

Log:
#4829: better error message for invalid file mode

Modified:
   python/branches/py3k/Modules/_io/fileio.c

Modified: python/branches/py3k/Modules/_io/fileio.c
==============================================================================
--- python/branches/py3k/Modules/_io/fileio.c	(original)
+++ python/branches/py3k/Modules/_io/fileio.c	Thu Oct 21 15:45:52 2010
@@ -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;


More information about the Python-checkins mailing list