from gevent import monkey
monkey.patch_all()
import time
import gevent
i = 0
with gevent.Timeout(2, False) as timeout:
time.sleep(3)
i = 1
print i
from gevent import monkey
monkey.patch_all()
import time
import gevent
i = 0
with gevent.Timeout(2, False) as timeout:
time.sleep(3)
i = 1
print i