DevpollSelector is Solaris only (#13242)

This commit is contained in:
Stephen Morton
2024-12-14 19:53:40 -08:00
committed by GitHub
parent fc11e83510
commit 7c7f91233f
2 changed files with 4 additions and 3 deletions

View File

@@ -50,8 +50,10 @@ if sys.platform == "linux":
class EpollSelector(_PollLikeSelector):
def fileno(self) -> int: ...
class DevpollSelector(_PollLikeSelector):
def fileno(self) -> int: ...
if sys.platform != "linux" and sys.platform != "darwin" and sys.platform != "win32":
# Solaris only
class DevpollSelector(_PollLikeSelector):
def fileno(self) -> int: ...
if sys.platform != "win32" and sys.platform != "linux":
class KqueueSelector(_BaseSelectorImpl):