Typos
This commit is contained in:
parent
4fc9ebc38a
commit
bf57baad45
@ -494,7 +494,7 @@ def main():
|
||||
"`config.py`?\n\n" + '\n'.join(
|
||||
'\t\t'.join(map(str, item))
|
||||
for item in new_settings.items()
|
||||
),
|
||||
) + '\n\t\t\t',
|
||||
timeout=3
|
||||
)
|
||||
if answer:
|
||||
|
@ -25,12 +25,5 @@ def timed_input(message: str = None,
|
||||
print() # Print end of line
|
||||
logging.info("Timeout!")
|
||||
signal.alarm(0)
|
||||
if given_input:
|
||||
logging.info(f"You typed: {given_input}")
|
||||
return
|
||||
return given_input
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
root_logger = logging.getLogger()
|
||||
root_logger.setLevel(logging.INFO)
|
||||
timed_input("Inserisci qualcosa (entro 3 secondi)\t\t", timeout=3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user