You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Lib/signal.py
+31-26
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
import_signal
2
+
importsys
2
3
from_signalimport*
3
4
fromenumimportIntEnumas_IntEnum
4
5
importthreading
@@ -46,6 +47,7 @@ def _enum_to_int(value):
46
47
returnvalue
47
48
48
49
_signal_queue=queue.SimpleQueue() # SimpleQueue has reentrant put, so it can safely be called from signal handlers. https://github.com/python/cpython/issues/59181
0 commit comments