From 219988740c2b5e0a4ff8fd265745062053efd30d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 2 Jul 2018 19:16:01 +0200 Subject: [PATCH] Remove unsupported argument for Python <3.6 --- pyrogram/client/ext/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py index 5161d370..ae3a9763 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -63,7 +63,7 @@ class Str(str): async def ainput(prompt: str = ""): print(prompt, end="", flush=True) - with ThreadPoolExecutor(1, "AsyncInput") as executor: + with ThreadPoolExecutor(1) as executor: return (await asyncio.get_event_loop().run_in_executor( executor, sys.stdin.readline )).rstrip()