diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-12-21 21:26:55 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-12-21 21:26:55 (GMT) |
commit | fc9ead69e5839c8627b1f6acc718de844929d42f (patch) | |
tree | 42c6a237dfa5ed13a002aab2be6a5f1cf371e30f /Modules/_io | |
parent | 5cf36729994491329168f0cebea128fd1f7bb72d (diff) | |
download | cpython-fc9ead69e5839c8627b1f6acc718de844929d42f.zip cpython-fc9ead69e5839c8627b1f6acc718de844929d42f.tar.gz cpython-fc9ead69e5839c8627b1f6acc718de844929d42f.tar.bz2 |
Merged revisions 87427 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87427 | antoine.pitrou | 2010-12-21 22:20:59 +0100 (mar., 21 déc. 2010) | 3 lines
Issue #10750: The `raw` attribute of buffered IO objects is now read-only.
........
Diffstat (limited to 'Modules/_io')
-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 c6373c6..18cf1ca 100644 --- a/Modules/_io/bufferedio.c +++ b/Modules/_io/bufferedio.c @@ -1513,7 +1513,7 @@ static PyMethodDef bufferedreader_methods[] = { }; static PyMemberDef bufferedreader_members[] = { - {"raw", T_OBJECT, offsetof(buffered, raw), 0}, + {"raw", T_OBJECT, offsetof(buffered, raw), READONLY}, {NULL} }; @@ -1896,7 +1896,7 @@ static PyMethodDef bufferedwriter_methods[] = { }; static PyMemberDef bufferedwriter_members[] = { - {"raw", T_OBJECT, offsetof(buffered, raw), 0}, + {"raw", T_OBJECT, offsetof(buffered, raw), READONLY}, {NULL} }; @@ -2286,7 +2286,7 @@ static PyMethodDef bufferedrandom_methods[] = { }; static PyMemberDef bufferedrandom_members[] = { - {"raw", T_OBJECT, offsetof(buffered, raw), 0}, + {"raw", T_OBJECT, offsetof(buffered, raw), READONLY}, {NULL} }; |