diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2008-09-15 23:02:56 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2008-09-15 23:02:56 (GMT) |
commit | 9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164 (patch) | |
tree | e39eac97c8d501a20d6f336ccddcc169f585271d /Modules | |
parent | 4e80cdd739772406bba00a31fdd98539cdcca651 (diff) | |
download | cpython-9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164.zip cpython-9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164.tar.gz cpython-9cadb1b6e0d10aaeb8f9e69e51f672a53de6b164.tar.bz2 |
Issue #3782: os.write() must not accept unicode strings
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 8931ea2..f6a4d95 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -4896,7 +4896,7 @@ posix_write(PyObject *self, PyObject *args) int fd; Py_ssize_t size; - if (!PyArg_ParseTuple(args, "is*:write", &fd, &pbuf)) + if (!PyArg_ParseTuple(args, "iy*:write", &fd, &pbuf)) return NULL; Py_BEGIN_ALLOW_THREADS size = write(fd, pbuf.buf, (size_t)pbuf.len); |