[Python-checkins] cpython: asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag

charles-francois.natali python-checkins at python.org
Sat Nov 5 14:16:49 CET 2011


http://hg.python.org/cpython/rev/5b6d7d90410e
changeset: 73375:5b6d7d90410e
user: Charles-François Natali <neologix at free.fr>
date: Sat Nov 05 14:16:01 2011 +0100
summary:
 asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
to poll(2): don't set them.
files:
 Lib/asyncore.py | 3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -181,9 +181,6 @@
 if obj.writable() and not obj.accepting:
 flags |= select.POLLOUT
 if flags:
- # Only check for exceptions if object was either readable
- # or writable.
- flags |= select.POLLERR | select.POLLHUP | select.POLLNVAL
 pollster.register(fd, flags)
 try:
 r = pollster.poll(timeout)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

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