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