def interrupter():
     # Raises KeyboardInterrupt in the main thread
     time.sleep(0.25)
     thread.interrupt_main()
Exemple #2
0
 def interrupter():
     # Raises KeyboardInterrupt in the main thread
     time.sleep(0.25)
     thread.interrupt_main()