summaryrefslogtreecommitdiffstats
path: root/Modules/_io/_iomodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-25 22:19:38 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-25 22:19:38 (GMT)
commitb57f108b03df332d276a224c92e32cee13a042f2 (patch)
tree954924ef9693e020c58d90999bdb548af8f45f9f /Modules/_io/_iomodule.c
parente9d44ccb2279a49a69277d38e956731675f1b556 (diff)
downloadcpython-b57f108b03df332d276a224c92e32cee13a042f2.zip
cpython-b57f108b03df332d276a224c92e32cee13a042f2.tar.gz
cpython-b57f108b03df332d276a224c92e32cee13a042f2.tar.bz2
Issue #12175: BufferedReader.read(-1) now calls raw.readall() if available.
Diffstat (limited to 'Modules/_io/_iomodule.c')
-rw-r--r--Modules/_io/_iomodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c
index 44bdac6..6f5bd48 100644
--- a/Modules/_io/_iomodule.c
+++ b/Modules/_io/_iomodule.c
@@ -36,6 +36,7 @@ PyObject *_PyIO_str_nl;
PyObject *_PyIO_str_read;
PyObject *_PyIO_str_read1;
PyObject *_PyIO_str_readable;
+PyObject *_PyIO_str_readall;
PyObject *_PyIO_str_readinto;
PyObject *_PyIO_str_readline;
PyObject *_PyIO_str_reset;
@@ -767,6 +768,8 @@ PyInit__io(void)
goto fail;
if (!(_PyIO_str_readable = PyUnicode_InternFromString("readable")))
goto fail;
+ if (!(_PyIO_str_readall = PyUnicode_InternFromString("readall")))
+ goto fail;
if (!(_PyIO_str_readinto = PyUnicode_InternFromString("readinto")))
goto fail;
if (!(_PyIO_str_readline = PyUnicode_InternFromString("readline")))