diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-16 20:11:52 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-16 20:11:52 +0800 |
| commit | 8369b139d67521ffd06293e43a04bf0948c6ce16 (patch) | |
| tree | c35624cddedc3156176a88e805db4ba2f86fc100 /stdlib.py | |
| parent | 7d3f47bcf43c32dda05f4882fe623a15b3b6978e (diff) | |
sync from main
Diffstat (limited to 'stdlib.py')
| -rwxr-xr-x | stdlib.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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): |
