File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -651,16 +651,16 @@ Timeouts
651
651
If ``long_running_task `` takes more than 10 seconds to complete,
652
652
the context manager will cancel the current task and handle
653
653
the resulting :exc: `asyncio.CancelledError ` internally, transforming it
654
- into an :exc: `asyncio. TimeoutError ` which can be caught and handled.
654
+ into a :exc: `TimeoutError ` which can be caught and handled.
655
655
656
656
.. note ::
657
657
658
658
The :func: `asyncio.timeout ` context manager is what transforms
659
- the :exc: `asyncio.CancelledError ` into an :exc: `asyncio. TimeoutError `,
660
- which means the :exc: `asyncio. TimeoutError ` can only be caught
659
+ the :exc: `asyncio.CancelledError ` into a :exc: `TimeoutError `,
660
+ which means the :exc: `TimeoutError ` can only be caught
661
661
*outside * of the context manager.
662
662
663
- Example of catching :exc: `asyncio. TimeoutError `::
663
+ Example of catching :exc: `TimeoutError `::
664
664
665
665
async def main():
666
666
try:
You can’t perform that action at this time.
0 commit comments