Created
March 3, 2020 21:08
-
-
Save tomekzaw/89cd712eb89858084bb5e82768b621e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
from signal import pause | |
except ImportError: | |
def pause(): | |
from time import sleep | |
try: | |
while True: | |
sleep(1) | |
except KeyboardInterrupt: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment