From: Amaury Forgeot d'Arc Date: Wed, 29 Oct 2008 23:15:57 +0000 (+0000) Subject: Correct error message in io.open(): X-Git-Tag: v2.7a1~2698 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f616f48caaa2c5ef8a1a1a317b41c1d53e06198;p=thirdparty%2FPython%2Fcpython.git Correct error message in io.open(): closefd=True is the only accepted value with a file name. --- diff --git a/Modules/_fileio.c b/Modules/_fileio.c index d7f78936715c..b33b745ab1bb 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; }