From f74ef458ab1f502e4e60bd1502ac1dc0d2cb3847 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Fri, 15 Dec 2017 07:04:38 +0200 Subject: bpo-32311: Implement asyncio.create_task() shortcut (#4848) * Implement functionality * Add documentation --- Lib/test/test_asyncio/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_asyncio/utils.py') diff --git a/Lib/test/test_asyncio/utils.py b/Lib/test/test_asyncio/utils.py index 560db9f562..a1a9bb3684 100644 --- a/Lib/test/test_asyncio/utils.py +++ b/Lib/test/test_asyncio/utils.py @@ -28,6 +28,7 @@ except ImportError: # pragma: no cover from asyncio import base_events from asyncio import events +from asyncio import format_helpers from asyncio import futures from asyncio import tasks from asyncio.log import logger @@ -429,7 +430,7 @@ class MockPattern(str): def get_function_source(func): - source = events._get_function_source(func) + source = format_helpers._get_function_source(func) if source is None: raise ValueError("unable to get the source of %r" % (func,)) return source -- cgit v1.2.1