We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4f6020 commit 4e17856Copy full SHA for 4e17856
Lib/subprocess.py
@@ -51,7 +51,6 @@
51
import threading
52
import warnings
53
import contextlib
54
-import select
55
from time import monotonic as _time
56
import types
57
@@ -122,6 +121,7 @@ class _del_safe:
122
121
WNOHANG = None
123
ECHILD = errno.ECHILD
124
+ import select
125
import selectors
126
127
@@ -798,8 +798,8 @@ def _can_use_kqueue():
798
kq.close()
799
800
801
-_CAN_USE_PIDFD_OPEN = _can_use_pidfd_open()
802
-_CAN_USE_KQUEUE = _can_use_kqueue()
+_CAN_USE_PIDFD_OPEN = not _mswindows and _can_use_pidfd_open()
+_CAN_USE_KQUEUE = not _mswindows and _can_use_kqueue()
803
804
805
# These are primarily fail-safe knobs for negatives. A True value does not
0 commit comments