From: Thomas Grainger Date: Sun, 29 Dec 2024 14:24:42 +0000 (+0000) Subject: make private X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c7c6206d10e64ae4947cafd9890e3b00929389c8;p=thirdparty%2Fstarlette.git make private --- diff --git a/starlette/_utils.py b/starlette/_utils.py index ca28c6fa..2d6c7024 100644 --- a/starlette/_utils.py +++ b/starlette/_utils.py @@ -75,7 +75,7 @@ class AwaitableOrContextManagerWrapper(typing.Generic[SupportsAsyncCloseType]): @contextmanager -def collapse_excgroups() -> typing.Generator[None, None, None]: +def _collapse_excgroups() -> typing.Generator[None, None, None]: try: yield except BaseExceptionGroup as excs: @@ -99,7 +99,7 @@ def collapse_excgroups() -> typing.Generator[None, None, None]: @asynccontextmanager async def create_collapsing_task_group() -> typing.AsyncGenerator[anyio.abc.TaskGroup, None]: - with collapse_excgroups(): + with _collapse_excgroups(): async with anyio.create_task_group() as tg: yield tg