diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-12-21 21:20:59 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-12-21 21:20:59 (GMT) |
commit | 7f8f41808b82b5e4812bc2e2d484a6fc8f02295c (patch) | |
tree | d04b34c9a8897cfdc8fce780f002b15b97502e12 /Modules | |
parent | cfee0e83ebd8826dbdc89035d15e1ea90a577fa2 (diff) | |
download | cpython-7f8f41808b82b5e4812bc2e2d484a6fc8f02295c.zip cpython-7f8f41808b82b5e4812bc2e2d484a6fc8f02295c.tar.gz cpython-7f8f41808b82b5e4812bc2e2d484a6fc8f02295c.tar.bz2 |
Issue #10750: The `raw` attribute of buffered IO objects is now read-only.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_io/bufferedio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c index f7e34a8..55c0a23 100644 --- a/Modules/_io/bufferedio.c +++ b/Modules/_io/bufferedio.c @@ -1541,7 +1541,7 @@ static PyMethodDef bufferedreader_methods[] = { }; static PyMemberDef bufferedreader_members[] = { - {"raw", T_OBJECT, offsetof(buffered, raw), 0}, + {"raw", T_OBJECT, offsetof(buffered, raw), READONLY}, {NULL} }; @@ -1926,7 +1926,7 @@ static PyMethodDef bufferedwriter_methods[] = { }; static PyMemberDef bufferedwriter_members[] = { - {"raw", T_OBJECT, offsetof(buffered, raw), 0}, + {"raw", T_OBJECT, offsetof(buffered, raw), READONLY}, {NULL} }; @@ -2320,7 +2320,7 @@ static PyMethodDef bufferedrandom_methods[] = { }; static PyMemberDef bufferedrandom_members[] = { - {"raw", T_OBJECT, offsetof(buffered, raw), 0}, + {"raw", T_OBJECT, offsetof(buffered, raw), READONLY}, {NULL} }; |