Commit 9f616f48 authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

Correct error message in io.open():

closefd=True is the only accepted value with a file name.
parent b06b4c34
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment