This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Implementation of pycurl's "easy" interface that uses pycurl's multi interface + gevent. | |
""" | |
# parts of code from Tornado's curl_httpclient.py | |
import logging | |
import gevent | |
assert gevent.version_info[:2] >= (0, 14), 'Gevent 0.14 or older required. Your version is %s' % gevent.__version__ | |
from gevent.core import EVENTS, READ, WRITE | |
from gevent.hub import Waiter | |