]> granicus.if.org Git - python/commitdiff
Fix the doc: add deprecation warning in select module.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 31 Mar 2014 21:23:23 +0000 (00:23 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 31 Mar 2014 21:23:23 +0000 (00:23 +0300)
Doc/library/select.rst

index 4fae87e5edddc9743a94284bb7f69ff7756f420f..4bf1a9f3c9d8c9877dba3a5a4535346d80f64321 100644 (file)
@@ -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)