mirror of https://github.com/python/cpython
Correct error message in io.open():
closefd=True is the only accepted value with a file name.
This commit is contained in:
parent
b06b4c342f
commit
9f616f48ca
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue