From 8369b139d67521ffd06293e43a04bf0948c6ce16 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 16 Oct 2023 20:11:52 +0800 Subject: sync from main --- stdlib.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stdlib.py') 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): -- cgit v1.2.3