1 2 3 4 5 6 7
try: import threading import thread except ImportError: import dummy_threading as threading import dummy_thread as thread