summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-02-24 03:07:55 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-02-24 03:07:55 (GMT)
commit9f10f56d132fecf2ad1b4eb2c45ae6cd23e34049 (patch)
tree95008ed8a10c9c914d9a8cbafbd58171408c70a5 /Modules/_io
parente766c742c1f006c08fa0f48ee43b4edb599a81c9 (diff)
parent67bfe8075822b226793ce672751329dd658af9af (diff)
downloadcpython-9f10f56d132fecf2ad1b4eb2c45ae6cd23e34049.zip
cpython-9f10f56d132fecf2ad1b4eb2c45ae6cd23e34049.tar.gz
cpython-9f10f56d132fecf2ad1b4eb2c45ae6cd23e34049.tar.bz2
Merge #17275: Fix class name in init errors in C bufferedio classes.
This fixes an apparent copy-and-paste error. Patch by Manuel Jacob.
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/bufferedio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c
index b077f34..2b39f66 100644
--- a/Modules/_io/bufferedio.c
+++ b/Modules/_io/bufferedio.c
@@ -1817,7 +1817,7 @@ bufferedwriter_init(buffered *self, PyObject *args, PyObject *kwds)
self->ok = 0;
self->detached = 0;
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|n:BufferedReader", kwlist,
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|n:BufferedWriter", kwlist,
&raw, &buffer_size)) {
return -1;
}
@@ -2446,7 +2446,7 @@ bufferedrandom_init(buffered *self, PyObject *args, PyObject *kwds)
self->ok = 0;
self->detached = 0;
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|n:BufferedReader", kwlist,
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|n:BufferedRandom", kwlist,
&raw, &buffer_size)) {
return -1;
}