summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-12-21 21:26:09 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-12-21 21:26:09 (GMT)
commit6cfc5124f2a615922d32ac19a319ffab8edaad0f (patch)
tree1d6b68e8021f9e1e10d7b32fad7708e39f4b30de /Modules/_io
parent9fc6b6c4536417283c6f52b6dfb4c82afb372448 (diff)
downloadcpython-6cfc5124f2a615922d32ac19a319ffab8edaad0f.zip
cpython-6cfc5124f2a615922d32ac19a319ffab8edaad0f.tar.gz
cpython-6cfc5124f2a615922d32ac19a319ffab8edaad0f.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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c
index 11bc0b6..71c4052 100644
--- a/Modules/_io/bufferedio.c
+++ b/Modules/_io/bufferedio.c
@@ -1500,7 +1500,7 @@ static PyMethodDef bufferedreader_methods[] = {
};
static PyMemberDef bufferedreader_members[] = {
- {"raw", T_OBJECT, offsetof(buffered, raw), 0},
+ {"raw", T_OBJECT, offsetof(buffered, raw), READONLY},
{NULL}
};
@@ -1882,7 +1882,7 @@ static PyMethodDef bufferedwriter_methods[] = {
};
static PyMemberDef bufferedwriter_members[] = {
- {"raw", T_OBJECT, offsetof(buffered, raw), 0},
+ {"raw", T_OBJECT, offsetof(buffered, raw), READONLY},
{NULL}
};
@@ -2272,7 +2272,7 @@ static PyMethodDef bufferedrandom_methods[] = {
};
static PyMemberDef bufferedrandom_members[] = {
- {"raw", T_OBJECT, offsetof(buffered, raw), 0},
+ {"raw", T_OBJECT, offsetof(buffered, raw), READONLY},
{NULL}
};