]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
make private
authorThomas Grainger <tagrain@gmail.com>
Sun, 29 Dec 2024 14:24:42 +0000 (14:24 +0000)
committerThomas Grainger <tagrain@gmail.com>
Sun, 29 Dec 2024 14:24:46 +0000 (14:24 +0000)
starlette/_utils.py

index ca28c6fa50f3354773ac89e5c54f4e3c8072d942..2d6c7024220cba19f22bb4981a477ff7851709c9 100644 (file)
@@ -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