From: Andrew Svetlov Date: Mon, 31 Mar 2014 21:23:23 +0000 (+0300) Subject: Fix the doc: add deprecation warning in select module. X-Git-Tag: v3.4.1rc1~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=050f9ea4d7e20634b6405006870dd5b0de9cb0aa;p=thirdparty%2FPython%2Fcpython.git Fix the doc: add deprecation warning in select module. --- diff --git a/Doc/library/select.rst b/Doc/library/select.rst index 4fae87e5eddd..4bf1a9f3c9d8 100644 --- a/Doc/library/select.rst +++ b/Doc/library/select.rst @@ -377,9 +377,13 @@ linearly scanned again. :c:func:`select` is O(highest file descriptor), while Modifies an already registered fd. This has the same effect as ``register(fd, eventmask)``. Attempting to modify a file descriptor - that was never registered causes an :exc:`IOError` exception with errno + that was never registered causes an :exc:`OSError` exception with errno :const:`ENOENT` to be raised. + .. deprecated:: 3.3 + + Instead of :exc:`IOError` the :exc:`OSError` exception is used now. + .. method:: poll.unregister(fd)