Commit 598c3787 authored by Colin Marc's avatar Colin Marc

gevent/event.py: provide xrange on python3

parent 57c94a9e
......@@ -2,8 +2,10 @@
"""Basic synchronization primitives: Event and AsyncResult"""
import sys
from gevent.hub import get_hub, getcurrent, _NONE
from gevent.hub import get_hub, getcurrent, _NONE, PY3
from gevent.timeout import Timeout
if PY3:
xrange = range
__all__ = ['Event', 'AsyncResult']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment