summaryrefslogtreecommitdiffstats
path: root/Modules/_io/_iomodule.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-11 09:33:39 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-11 09:33:39 (GMT)
commite40ee509e35edd7dcab4009c4a65efc626527bb8 (patch)
tree07efb60876766e3849614c6314d7951e1df242ab /Modules/_io/_iomodule.c
parentde41bf3dd5bd5640a24ed3b11ceb53722ccaf528 (diff)
downloadcpython-e40ee509e35edd7dcab4009c4a65efc626527bb8.zip
cpython-e40ee509e35edd7dcab4009c4a65efc626527bb8.tar.gz
cpython-e40ee509e35edd7dcab4009c4a65efc626527bb8.tar.bz2
#9184: fix default value for "buffering" param of open().
Diffstat (limited to 'Modules/_io/_iomodule.c')
-rw-r--r--Modules/_io/_iomodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c
index e20a2f6..733a7b9 100644
--- a/Modules/_io/_iomodule.c
+++ b/Modules/_io/_iomodule.c
@@ -176,7 +176,7 @@ PyObject *PyExc_BlockingIOError = (PyObject *)&_PyExc_BlockingIOError;
* The main open() function
*/
PyDoc_STRVAR(open_doc,
-"open(file, mode='r', buffering=None, encoding=None,\n"
+"open(file, mode='r', buffering=-1, encoding=None,\n"
" errors=None, newline=None, closefd=True) -> file object\n"
"\n"
"Open file and return a stream. Raise IOError upon failure.\n"