Remove unsupported argument for Python <3.6

This commit is contained in:
Dan 2018-07-02 19:16:01 +02:00
parent f4c583664a
commit 219988740c

View File

@ -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()