summaryrefslogtreecommitdiff
path: root/Lib/urllib/request.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-11-13 14:44:42 +0100
committerGitHub <noreply@github.com>2020-11-13 14:44:42 +0100
commitd96a7a83133250377219227b5cfab4dbdddc5d3a (patch)
tree5f040cee144aa498889578d7a1ef12d9751c7f89 /Lib/urllib/request.py
parent0cec97eb6a3e31493c29ef9398fcf39a5ec445a6 (diff)
downloadcpython-git-d96a7a83133250377219227b5cfab4dbdddc5d3a.tar.gz
bpo-42296: On Windows, fix CTRL+C regression (GH-23257)
On Windows, fix a regression in signal handling which prevented to interrupt a program using CTRL+C. The signal handler can be run in a thread different than the Python thread, in which case the test deciding if the thread can handle signals is wrong. On Windows, _PyEval_SignalReceived() now always sets eval_breaker to 1 since it cannot test _Py_ThreadCanHandleSignals(), and eval_frame_handle_pending() always calls _Py_ThreadCanHandleSignals() to recompute eval_breaker.
Diffstat (limited to 'Lib/urllib/request.py')
0 files changed, 0 insertions, 0 deletions