bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)

(cherry picked from commit b042cf10c6)

Co-authored-by: Yury Selivanov <yury@magic.io>
This commit is contained in:
Miss Islington (bot) 2018-09-18 00:00:58 -07:00 committed by GitHub
parent ee2ff1a335
commit 45452b738b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View 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

View File

@ -8,7 +8,7 @@
.. sidebar:: Hello World!
.. code-block:: python
::
import asyncio