summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-02-24 02:51:05 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-02-24 02:51:05 (GMT)
commit67bfe8075822b226793ce672751329dd658af9af (patch)
tree49abcce706c2ce732e04afb9805ea550b4692f2e /Modules
parent0362b54fd9e8158c4b62386f1bd654daf1095ed4 (diff)
downloadcpython-67bfe8075822b226793ce672751329dd658af9af.zip
cpython-67bfe8075822b226793ce672751329dd658af9af.tar.gz
cpython-67bfe8075822b226793ce672751329dd658af9af.tar.bz2
#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')
-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 bb77acc..a8278d4 100644
--- a/Modules/_io/bufferedio.c
+++ b/Modules/_io/bufferedio.c
@@ -1702,7 +1702,7 @@ bufferedwriter_init(buffered *self, PyObject *args, PyObject *kwds)
self->ok = 0;
self->detached = 0;
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|nn:BufferedReader", kwlist,
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|nn:BufferedWriter", kwlist,
&raw, &buffer_size, &max_buffer_size)) {
return -1;
}
@@ -2339,7 +2339,7 @@ bufferedrandom_init(buffered *self, PyObject *args, PyObject *kwds)
self->ok = 0;
self->detached = 0;
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|nn:BufferedReader", kwlist,
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|nn:BufferedRandom", kwlist,
&raw, &buffer_size, &max_buffer_size)) {
return -1;
}