Correct error message in io.open():

closefd=True is the only accepted value with a file name.
This commit is contained in:
Amaury Forgeot d'Arc 2008-10-29 23:15:57 +00:00
parent b06b4c342f
commit 9f616f48ca
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ fileio_init(PyObject *oself, PyObject *args, PyObject *kwds)
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;
}