Check whether a Poll object has a readable fd.
( poller )
| 495 | # Helper functions |
| 496 | |
| 497 | def isReadable( poller ): |
| 498 | "Check whether a Poll object has a readable fd." |
| 499 | for fdmask in poller.poll( 0 ): |
| 500 | mask = fdmask[ 1 ] |
| 501 | if mask & POLLIN: |
| 502 | return True |
| 503 | return False |