summaryrefslogtreecommitdiff
path: root/stdlib.py
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-10-16 20:11:52 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-10-16 20:11:52 +0800
commit8369b139d67521ffd06293e43a04bf0948c6ce16 (patch)
treec35624cddedc3156176a88e805db4ba2f86fc100 /stdlib.py
parent7d3f47bcf43c32dda05f4882fe623a15b3b6978e (diff)
sync from main
Diffstat (limited to 'stdlib.py')
-rwxr-xr-xstdlib.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/stdlib.py b/stdlib.py
index ab8bf62..0d7a201 100755
--- a/stdlib.py
+++ b/stdlib.py
@@ -4,7 +4,6 @@
from rich.console import Console as console
from rich.syntax import Syntax as syntax
from rich import print as rprint
-from configparser import ConfigParser as config
from argparse import ArgumentParser as arg
@@ -168,7 +167,7 @@ def ainputf(str: str, end='', ccolor=ascii.color.purple):
return input()
def askinput(str: str, inputter=ainputf, ccolor=ascii.color.blue):
- inputter(f"{ccolor}[?] {str}{ascii.color.reset}")
+ return inputter(f"{ccolor}[?] {str}{ascii.color.reset}")
# animated countdown from @timeoutsec
def countdown(timeoutsec: int):