From 34ce5fda26bf28cd2da31a33d7ee0495ee2bfb59 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 25 Feb 2025 11:20:07 -0500 Subject: [PATCH] Drop `asyncio`-canc error from `._exceptions` --- tractor/_exceptions.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/tractor/_exceptions.py b/tractor/_exceptions.py index db863359..3382be10 100644 --- a/tractor/_exceptions.py +++ b/tractor/_exceptions.py @@ -1015,18 +1015,6 @@ class MessagingError(Exception): ''' -class AsyncioCancelled(Exception): - ''' - Asyncio cancelled translation (non-base) error - for use with the ``to_asyncio`` module - to be raised in the ``trio`` side task - - NOTE: this should NOT inherit from `asyncio.CancelledError` or - tests should break! - - ''' - - def pack_error( exc: BaseException|RemoteActorError, @@ -1206,7 +1194,7 @@ def is_multi_cancelled( trio.Cancelled in ignore_nested # XXX always count-in `trio`'s native signal ): - ignore_nested |= {trio.Cancelled} + ignore_nested.update({trio.Cancelled}) if isinstance(exc, BaseExceptionGroup): matched_exc: BaseExceptionGroup|None = exc.subgroup(