Skip to content

Commit 45452b7

Browse files
miss-islington1st1
andauthored
bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)
(cherry picked from commit b042cf1) Co-authored-by: Yury Selivanov <[email protected]>
1 parent ee2ff1a commit 45452b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/library/asyncio-task.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Coroutines
2020

2121
Coroutines declared with async/await syntax is the preferred way of
2222
writing asyncio applications. For example, the following snippet
23-
of code prints "hello", waits 1 second, and then prints "world"::
23+
of code (requires Python 3.7+) prints "hello", waits 1 second,
24+
and then prints "world"::
2425

2526
>>> import asyncio
2627

Doc/library/asyncio.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
.. sidebar:: Hello World!
1010

11-
.. code-block:: python
11+
::
1212

1313
import asyncio
1414

0 commit comments

Comments
 (0)