def watch_expect(): try: expect = Expect() expect.catch(event_cb) except KeyboardInterrupt: print("Interrupted.")
def watch_expect(): try: expect = Expect() expect.catch(event_cb) except KeyboardInterrupt: print "Interrupted."