From 9f616f48caaa2c5ef8a1a1a317b41c1d53e06198 Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Wed, 29 Oct 2008 23:15:57 +0000 Subject: Correct error message in io.open(): closefd=True is the only accepted value with a file name. --- Modules/_fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_fileio.c b/Modules/_fileio.c index d7f7893..b33b745 100644 --- a/Modules/_fileio.c +++ b/Modules/_fileio.c @@ -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; } -- cgit v0.12