[Neo-report] r1870 vincent - /trunk/neo/epoll.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 26 15:57:11 CET 2010


Author: vincent
Date: Fri Feb 26 15:57:10 2010
New Revision: 1870

Log:
Simplify condition.

If EPOLLERR or EPOLLHUP is asserted, the event will be appended to
readable_fd_list, so it is useless to test their value in the second
test too.

Modified:
    trunk/neo/epoll.py

Modified: trunk/neo/epoll.py
==============================================================================
--- trunk/neo/epoll.py [iso-8859-1] (original)
+++ trunk/neo/epoll.py [iso-8859-1] Fri Feb 26 15:57:10 2010
@@ -97,7 +97,7 @@
                     ev = self.events[i]
                     if ev.events & (EPOLLIN | EPOLLERR | EPOLLHUP):
                         readable_fd_list.append(int(ev.data.fd))
-                    elif ev.events & (EPOLLOUT | EPOLLERR | EPOLLHUP):
+                    elif ev.events & EPOLLOUT:
                         writable_fd_list.append(int(ev.data.fd))
                 return readable_fd_list, writable_fd_list
 





More information about the Neo-report mailing list