From 9c21717cb259777b26438218f42fcf4174e8f872 Mon Sep 17 00:00:00 2001 From: Daniel Miranda Date: Mon, 23 May 2022 09:57:09 +0100 Subject: [PATCH] Fix py3.6 compatibility --- aioitertools/more_itertools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioitertools/more_itertools.py b/aioitertools/more_itertools.py index 69f61a7..58d84ea 100644 --- a/aioitertools/more_itertools.py +++ b/aioitertools/more_itertools.py @@ -70,7 +70,7 @@ async def before_and_after( it = iter(iterable) - transition = asyncio.get_running_loop().create_future() + transition = asyncio.get_event_loop().create_future() async def true_iterator(): async for elem in it: