[pypy-svn] r56057 - pypy/dist/pypy/module/select

fijal at codespeak.net fijal at codespeak.net
Wed Jun 25 06:16:30 CEST 2008


Author: fijal
Date: Wed Jun 25 06:16:30 2008
New Revision: 56057

Modified:
   pypy/dist/pypy/module/select/app_select.py
Log:
A fix for a test. Not sure exactly why this is an issue.
Copied from http://twistedmatrix.com/trac/ticket/3218 (last comment)


Modified: pypy/dist/pypy/module/select/app_select.py
==============================================================================
--- pypy/dist/pypy/module/select/app_select.py	(original)
+++ pypy/dist/pypy/module/select/app_select.py	Wed Jun 25 06:16:30 2008
@@ -66,9 +66,12 @@
     else:
         ret = dict(p.poll())
 
+    #iretd = [ f for f in iwtd if ret.get(fddict[id(f)], 0) & (POLLIN|POLLHUP|POLLERR)]
+    #oretd = [ f for f in owtd if ret.get(fddict[id(f)], 0) & POLLOUT]
+    #eretd = [ f for f in ewtd if ret.get(fddict[id(f)], 0) & (POLLERR|POLLPRI)]
     iretd = [ f for f in iwtd if ret.get(fddict[id(f)], 0) & (POLLIN|POLLHUP|POLLERR)]
-    oretd = [ f for f in owtd if ret.get(fddict[id(f)], 0) & POLLOUT]
-    eretd = [ f for f in ewtd if ret.get(fddict[id(f)], 0) & (POLLERR|POLLPRI)]
+    oretd = [ f for f in owtd if ret.get(fddict[id(f)], 0) & (POLLOUT|POLLERR)]
+    eretd = [ f for f in ewtd if ret.get(fddict[id(f)], 0) & POLLPRI]
 
     return iretd, oretd, eretd
     



More information about the Pypy-commit mailing list