commit | 9f616f48caaa2c5ef8a1a1a317b41c1d53e06198 | [log] [tgz] |
---|---|---|
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Wed Oct 29 23:15:57 2008 +0000 |
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Wed Oct 29 23:15:57 2008 +0000 |
tree | 3a7422e26ad8437c00a9d35473eecfe87afd2258 | |
parent | b06b4c342f8d62ad1fe1784d15854c41523710b5 [diff] [blame] |
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 d7f7893..b33b745 100644 --- a/Modules/_fileio.c +++ b/Modules/_fileio.c
@@ -249,7 +249,7 @@ 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; }