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

Yury Selivanov webhook-mailer at python.org
Tue Sep 18 02:47:59 EDT 2018


https://github.com/python/cpython/commit/b042cf10c6084d14279c55a7e0d2d7595ff4e694
commit: b042cf10c6084d14279c55a7e0d2d7595ff4e694
branch: master
author: Yury Selivanov <yury at magic.io>
committer: GitHub <noreply at github.com>
date: 2018-09-18T02:47:54-04:00
summary:

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

files:
M Doc/library/asyncio-task.rst
M Doc/library/asyncio.rst

diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index d597234383db..4f37296f4a3e 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 bfc97001bb71..1511b2f75a89 100644
--- a/Doc/library/asyncio.rst
+++ b/Doc/library/asyncio.rst
@@ -8,7 +8,7 @@
 
 .. sidebar:: Hello World!
 
-   .. code-block:: python
+   ::
 
        import asyncio
 



More information about the Python-checkins mailing list