summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-10-29 23:15:57 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-10-29 23:15:57 (GMT)
commit9f616f48caaa2c5ef8a1a1a317b41c1d53e06198 (patch)
tree3a7422e26ad8437c00a9d35473eecfe87afd2258 /Modules
parentb06b4c342f8d62ad1fe1784d15854c41523710b5 (diff)
downloadcpython-9f616f48caaa2c5ef8a1a1a317b41c1d53e06198.zip
cpython-9f616f48caaa2c5ef8a1a1a317b41c1d53e06198.tar.gz
cpython-9f616f48caaa2c5ef8a1a1a317b41c1d53e06198.tar.bz2
Correct error message in io.open():
closefd=True is the only accepted value with a file name.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_fileio.c2
1 files changed, 1 insertions, 1 deletions
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;
}