]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 18 Sep 2018 07:00:58 +0000 (00:00 -0700)
committerGitHub <noreply@github.com>
Tue, 18 Sep 2018 07:00:58 +0000 (00:00 -0700)
(cherry picked from commit b042cf10c6084d14279c55a7e0d2d7595ff4e694)

Co-authored-by: Yury Selivanov <yury@magic.io>
Doc/library/asyncio-task.rst
Doc/library/asyncio.rst

index 2753998745efa48abcfbbd0b33332496993ca92e..45b8b604200e776a596c86b60e7268e565c18da6 100644 (file)
@@ -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
 
index bfc97001bb71edf50b7d299855abbb0fb0e38988..1511b2f75a89d71e8a9218ff65db1dfa06741eb6 100644 (file)
@@ -8,7 +8,7 @@
 
 .. sidebar:: Hello World!
 
-   .. code-block:: python
+   ::
 
        import asyncio