Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4272d6a3
Commit
4272d6a3
authored
Oct 12, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some mentions of IOError
parent
a787b650
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
Doc/library/chunk.rst
Doc/library/chunk.rst
+3
-2
Doc/library/fileinput.rst
Doc/library/fileinput.rst
+4
-1
Doc/library/signal.rst
Doc/library/signal.rst
+6
-2
Doc/library/urllib.request.rst
Doc/library/urllib.request.rst
+1
-1
No files found.
Doc/library/chunk.rst
View file @
4272d6a3
...
...
@@ -84,8 +84,9 @@ instance will fail with a :exc:`EOFError` exception.
Close and skip to the end of the chunk. This does not close the
underlying file.
The remaining methods will raise :exc:`IOError` if called after the
:meth:`close` method has been called.
The remaining methods will raise :exc:`OSError` if called after the
:meth:`close` method has been called. Before Python 3.3, they used to
raise :exc:`IOError`, now an alias of :exc:`OSError`.
.. method:: isatty()
...
...
Doc/library/fileinput.rst
View file @
4272d6a3
...
...
@@ -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
...
...
Doc/library/signal.rst
View file @
4272d6a3
...
...
@@ -145,7 +145,11 @@ The :mod:`signal` module defines one exception:
Raised to signal an error from the underlying :func:`setitimer` or
:func:`getitimer` implementation. Expect this error if an invalid
interval timer or a negative time is passed to :func:`setitimer`.
This error is a subtype of :exc:`IOError`.
This error is a subtype of :exc:`OSError`.
.. versionadded:: 3.3
This error used to be a subtype of :exc:`IOError`, which is now an
alias of :exc:`OSError`.
The :mod:`signal` module defines the following functions:
...
...
@@ -396,7 +400,7 @@ be sent, and the handler raises an exception. ::
def handler(signum, frame):
print('Signal handler called with signal', signum)
raise
IO
Error("Couldn't open device!")
raise
OS
Error("Couldn't open device!")
# Set the signal handler and a 5-second alarm
signal.signal(signal.SIGALRM, handler)
...
...
Doc/library/urllib.request.rst
View file @
4272d6a3
...
...
@@ -1172,7 +1172,7 @@ some point in the future.
*key_file* and *cert_file* are supported to provide an SSL key and certificate;
both are needed to support client authentication.
:class:`URLopener` objects will raise an :exc:`
IO
Error` exception if the server
:class:`URLopener` objects will raise an :exc:`
OS
Error` exception if the server
returns an error code.
.. method:: open(fullurl, data=None)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment