From a1837431b68d4db24b632be56e5482690f70bd5f Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 2 Aug 2018 22:18:01 +0200 Subject: [PATCH] Fix 3.5 compatibility for the GUI example --- telethon_examples/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon_examples/gui.py b/telethon_examples/gui.py index 7e6f7b0e..e90bb34a 100644 --- a/telethon_examples/gui.py +++ b/telethon_examples/gui.py @@ -40,7 +40,7 @@ def callback(func): def wrapped(*args, **kwargs): result = func(*args, **kwargs) if inspect.iscoroutine(result): - asyncio.create_task(result) + aio_loop.create_task(result) return wrapped