[Python-checkins] r67044 - python/trunk/Modules/_fileio.c

amaury.forgeotdarc python-checkins at python.org
Thu Oct 30 00:15:57 CET 2008


Author: amaury.forgeotdarc
Date: Thu Oct 30 00:15:57 2008
New Revision: 67044

Log:
Correct error message in io.open(): 
closefd=True is the only accepted value with a file name.


Modified:
   python/trunk/Modules/_fileio.c

Modified: python/trunk/Modules/_fileio.c
==============================================================================
--- python/trunk/Modules/_fileio.c	(original)
+++ python/trunk/Modules/_fileio.c	Thu Oct 30 00:15:57 2008
@@ -249,7 +249,7 @@
 		self->closefd = 1;
 		if (!closefd) {
 			PyErr_SetString(PyExc_ValueError,
-                            "Cannot use closefd=True with file name");
+                            "Cannot use closefd=False with file name");
 			goto error;
 		}
 


More information about the Python-checkins mailing list