diff options
author | Charles-François Natali <neologix@free.fr> | 2011-11-05 13:16:01 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-11-05 13:16:01 (GMT) |
commit | 88c2e45367e97b760efc1aec88f98dd3cd54a9c3 (patch) | |
tree | fd89aefcf1bb38011e93b3e8197419839834ffc1 | |
parent | 064e39330db471d2c31bd5abc101f5f9aea5b3e3 (diff) | |
download | cpython-88c2e45367e97b760efc1aec88f98dd3cd54a9c3.zip cpython-88c2e45367e97b760efc1aec88f98dd3cd54a9c3.tar.gz cpython-88c2e45367e97b760efc1aec88f98dd3cd54a9c3.tar.bz2 |
asyncore: POLLERR, POLLHUP and POLLNVAL are ignored when passed as input flag
to poll(2): don't set them.
-rw-r--r-- | Lib/asyncore.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 6d4bbbe..920444d 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -181,9 +181,6 @@ def poll2(timeout=0.0, map=None): 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) |