diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-07-07 12:23:53 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-07-07 12:23:53 (GMT) |
commit | 6fe93cdeb31c699babf0efee7957bea3c4b0e576 (patch) | |
tree | 4c8c4fc2cc9fd9864e5488a7cba617d1e7fd2f9c /Lib/asyncore.py | |
parent | ad6ce46f4944d982f0a9b969481f530f48495640 (diff) | |
download | cpython-6fe93cdeb31c699babf0efee7957bea3c4b0e576.zip cpython-6fe93cdeb31c699babf0efee7957bea3c4b0e576.tar.gz cpython-6fe93cdeb31c699babf0efee7957bea3c4b0e576.tar.bz2 |
For readable() objects, the previous value of 'flags' was ignored.
Rearrange code for writable() case to make the parallel logic clearer
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: |