[Python-checkins] cpython (3.4): Fix the doc: add deprecation warning in select module.

andrew.svetlov python-checkins at python.org
Mon Mar 31 23:41:23 CEST 2014


http://hg.python.org/cpython/rev/f507727c5dd2
changeset: 90078:f507727c5dd2
branch: 3.4
parent: 90076:c42cce290d50
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Tue Apr 01 00:23:23 2014 +0300
summary:
 Fix the doc: add deprecation warning in select module.
files:
 Doc/library/select.rst | 6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Doc/library/select.rst b/Doc/library/select.rst
--- a/Doc/library/select.rst
+++ b/Doc/library/select.rst
@@ -377,9 +377,13 @@
 
 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)
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /