From: Yury Selivanov Date: Tue, 18 Sep 2018 06:47:54 +0000 (-0400) Subject: bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389) X-Git-Tag: v3.8.0a1~949 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b042cf10c6084d14279c55a7e0d2d7595ff4e694;p=thirdparty%2FPython%2Fcpython.git bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389) --- 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