From 3f863ee482710f6de0f4a187f7b6830468e6a1c6 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 18 Sep 2018 02:39:44 -0400 Subject: [PATCH] bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ --- Doc/library/asyncio-task.rst | 3 ++- Doc/library/asyncio.rst | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index d597234383db0df..4f37296f4a3ed1a 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 bfc97001bb71edf..1511b2f75a89d71 100644 --- a/Doc/library/asyncio.rst +++ b/Doc/library/asyncio.rst @@ -8,7 +8,7 @@ .. sidebar:: Hello World! - .. code-block:: python + :: import asyncio