Esempio n. 1
0
def watch_expect():
    try:
        expect = Expect()
        expect.catch(event_cb)
    except KeyboardInterrupt:
        print("Interrupted.")
Esempio n. 2
0
def watch_expect():
    try:
        expect = Expect()
        expect.catch(event_cb)
    except KeyboardInterrupt:
        print "Interrupted."