diff options
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index a737728..7a790d3 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -138,9 +138,9 @@ def poll2(timeout=0.0, map=None): for fd, obj in map.items(): flags = select.POLLERR | select.POLLHUP | select.POLLNVAL if obj.readable(): - flags = select.POLLIN | select.POLLPRI + flags |= select.POLLIN | select.POLLPRI if obj.writable(): - flags = flags | select.POLLOUT + flags |= select.POLLOUT if flags: pollster.register(fd, flags) try: |