summaryrefslogtreecommitdiffstats
path: root/Doc/library/signal.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/signal.rst
parenta787b650d4dc728674b7c490d5aa8a3d10903fdc (diff)
downloadcpython-4272d6a315ba0281ccfd5d4c842c53111e9f4ae3.zip
cpython-4272d6a315ba0281ccfd5d4c842c53111e9f4ae3.tar.gz
cpython-4272d6a315ba0281ccfd5d4c842c53111e9f4ae3.tar.bz2
Fix some mentions of IOError
Diffstat (limited to 'Doc/library/signal.rst')
-rw-r--r--Doc/library/signal.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/library/signal.rst b/Doc/library/signal.rst
index 9bca72e..cbb9534 100644
--- a/Doc/library/signal.rst
+++ b/Doc/library/signal.rst
@@ -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 IOError("Couldn't open device!")
+ raise OSError("Couldn't open device!")
# Set the signal handler and a 5-second alarm
signal.signal(signal.SIGALRM, handler)