Queer European MD passionate about IT
Davte 5 년 전
부모
커밋
bf57baad45
2개의 변경된 파일2개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 1
      src/client.py
  2. 1 8
      src/utilities.py

+ 1 - 1
src/client.py

@@ -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:

+ 1 - 8
src/utilities.py

@@ -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)