summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-04-27 21:01:54 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-04-27 21:01:54 (GMT)
commita9bd6d5ea7b822e12fa3c080fe24b04a87bcae56 (patch)
tree5691762d0c9c265d9d5e1fdbad192671e9c8aea2 /Doc/library
parent1dc6b08f9efe471cc5983cdfcdb391eea505a5e0 (diff)
downloadcpython-a9bd6d5ea7b822e12fa3c080fe24b04a87bcae56.zip
cpython-a9bd6d5ea7b822e12fa3c080fe24b04a87bcae56.tar.gz
cpython-a9bd6d5ea7b822e12fa3c080fe24b04a87bcae56.tar.bz2
reject None as the buffering argument like the C implementation does #8546
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/io.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index adde553..cf5e9f7 100644
--- a/Doc/library/io.rst
+++ b/Doc/library/io.rst
@@ -61,7 +61,7 @@ Module Interface
classes. :func:`.open` uses the file's blksize (as obtained by
:func:`os.stat`) if possible.
-.. function:: open(file, mode='r', buffering=None, encoding=None, errors=None, newline=None, closefd=True)
+.. function:: open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True)
Open *file* and return a corresponding stream. If the file cannot be opened,
an :exc:`IOError` is raised.