PYTHON-2320 Use select instead of poll on Jython (#466)
This commit is contained in:
parent
05267fb465
commit
b6bf4f0157
@ -16,8 +16,11 @@
|
||||
|
||||
import errno
|
||||
import select
|
||||
import sys
|
||||
|
||||
_HAVE_POLL = hasattr(select, "poll")
|
||||
# PYTHON-2320: Jython does not fully support poll on SSL sockets,
|
||||
# https://bugs.jython.org/issue2900
|
||||
_HAVE_POLL = hasattr(select, "poll") and not sys.platform.startswith('java')
|
||||
_SelectError = getattr(select, "error", OSError)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user