Commit 5e86f916 authored by Denis Bilenko's avatar Denis Bilenko

import "greenlet" first, then "py.magic.greenlet"

the former is default now
parent d5614c3f
...@@ -20,9 +20,12 @@ __all__ = ['getcurrent', ...@@ -20,9 +20,12 @@ __all__ = ['getcurrent',
try: try:
from py.magic import greenlet
except ImportError:
greenlet = __import__('greenlet').greenlet greenlet = __import__('greenlet').greenlet
except ImportError:
try:
from py.magic import greenlet
except ImportError:
raise ImportError('gevent requires greenlet library: http://pypi.python.org/pypi/greenlet/')
getcurrent = greenlet.getcurrent getcurrent = greenlet.getcurrent
GreenletExit = greenlet.GreenletExit GreenletExit = greenlet.GreenletExit
......
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