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 680306f commit 2fe4fcaCopy full SHA for 2fe4fca
1 file changed
src/trio/_threads.py
@@ -2,7 +2,6 @@
2
3
import contextlib
4
import contextvars
5
-import copy
6
import inspect
7
import queue as stdlib_queue
8
import threading
@@ -433,7 +432,7 @@ def abort(raise_cancel: RaiseCancelT) -> trio.lowlevel.Abort:
433
432
# fill so from_thread_check_cancelled can raise
434
# 'raise_cancel' will immediately delete its reason object, so we make
435
# a copy in each thread
436
- cancel_register[0] = copy.copy(raise_cancel)
+ cancel_register[0] = raise_cancel
437
if abandon_bool:
438
# empty so report_back_in_trio_thread_fn cannot reschedule
439
task_register[0] = None
0 commit comments