diff options
author | Yury Selivanov <yury@magic.io> | 2018-09-18 06:47:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 06:47:54 (GMT) |
commit | b042cf10c6084d14279c55a7e0d2d7595ff4e694 (patch) | |
tree | f20d0208c34b648c9f3bcbbbd0f752b93800701b /Doc | |
parent | e0c19ddc661e56cc7e694be52d3e47f1dfe5af24 (diff) | |
download | cpython-b042cf10c6084d14279c55a7e0d2d7595ff4e694.zip cpython-b042cf10c6084d14279c55a7e0d2d7595ff4e694.tar.gz cpython-b042cf10c6084d14279c55a7e0d2d7595ff4e694.tar.bz2 |
bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-task.rst | 3 | ||||
-rw-r--r-- | Doc/library/asyncio.rst | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index d597234..4f37296 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -20,7 +20,8 @@ Coroutines Coroutines declared with async/await syntax is the preferred way of writing asyncio applications. For example, the following snippet -of code prints "hello", waits 1 second, and then prints "world":: +of code (requires Python 3.7+) prints "hello", waits 1 second, +and then prints "world":: >>> import asyncio diff --git a/Doc/library/asyncio.rst b/Doc/library/asyncio.rst index bfc9700..1511b2f 100644 --- a/Doc/library/asyncio.rst +++ b/Doc/library/asyncio.rst @@ -8,7 +8,7 @@ .. sidebar:: Hello World! - .. code-block:: python + :: import asyncio |