summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-09-18 00:00:58 -0700
committerGitHub <noreply@github.com>2018-09-18 00:00:58 -0700
commit45452b738b7f94221a94e903fb5975222fbb7a8f (patch)
tree7b9e4bcfafcc4fe96782c66785107e70caedd356
parentee2ff1a335b0a59f445959178c5d2a9802c5b3e4 (diff)
downloadcpython-git-45452b738b7f94221a94e903fb5975222fbb7a8f.tar.gz
bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)
(cherry picked from commit b042cf10c6084d14279c55a7e0d2d7595ff4e694) Co-authored-by: Yury Selivanov <yury@magic.io>
-rw-r--r--Doc/library/asyncio-task.rst3
-rw-r--r--Doc/library/asyncio.rst2
2 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 2753998745..45b8b60420 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 bfc97001bb..1511b2f75a 100644
--- a/Doc/library/asyncio.rst
+++ b/Doc/library/asyncio.rst
@@ -8,7 +8,7 @@
.. sidebar:: Hello World!
- .. code-block:: python
+ ::
import asyncio