summaryrefslogtreecommitdiffstats
path: root/Doc/library/fileinput.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-12 17:10:10 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-12 17:10:10 (GMT)
commit4272d6a315ba0281ccfd5d4c842c53111e9f4ae3 (patch)
tree7e27db94e3d4da81566e19061ad4abb7bf23b243 /Doc/library/fileinput.rst
parenta787b650d4dc728674b7c490d5aa8a3d10903fdc (diff)
downloadcpython-4272d6a315ba0281ccfd5d4c842c53111e9f4ae3.zip
cpython-4272d6a315ba0281ccfd5d4c842c53111e9f4ae3.tar.gz
cpython-4272d6a315ba0281ccfd5d4c842c53111e9f4ae3.tar.bz2
Fix some mentions of IOError
Diffstat (limited to 'Doc/library/fileinput.rst')
-rw-r--r--Doc/library/fileinput.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst
index ac44311..daefd99 100644
--- a/Doc/library/fileinput.rst
+++ b/Doc/library/fileinput.rst
@@ -28,7 +28,10 @@ as the first argument to :func:`.input`. A single file name is also allowed.
All files are opened in text mode by default, but you can override this by
specifying the *mode* parameter in the call to :func:`.input` or
:class:`FileInput`. If an I/O error occurs during opening or reading a file,
-:exc:`IOError` is raised.
+:exc:`OSError` is raised.
+
+.. versionchanged:: 3.3
+ :exc:`IOError` used to be raised; it is now an alias of :exc:`OSError`.
If ``sys.stdin`` is used more than once, the second and further use will return
no lines, except perhaps for interactive use, or if it has been explicitly reset