mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Remove unsupported argument for Python <3.6
This commit is contained in:
parent
f4c583664a
commit
219988740c
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class Str(str):
|
||||||
async def ainput(prompt: str = ""):
|
async def ainput(prompt: str = ""):
|
||||||
print(prompt, end="", flush=True)
|
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(
|
return (await asyncio.get_event_loop().run_in_executor(
|
||||||
executor, sys.stdin.readline
|
executor, sys.stdin.readline
|
||||||
)).rstrip()
|
)).rstrip()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue