From: Kenneth Reitz Date: Fri, 14 Oct 2011 01:50:04 +0000 (-0400) Subject: gevent installation documentation X-Git-Tag: v0.6.4^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b14fa0764bc5e1340762e45af999334e9b74f642;p=services%2Fpython-requests.git gevent installation documentation --- diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index e8c812a..9f0a683 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -50,7 +50,7 @@ Requests has first-class support for non-blocking i/o requests, powered by gevent. This allows you to send a bunch of HTTP requests at the same First, let's import the async module. Heads up — if you don't have -**gevent** installed, this will fail.:: +`gevent `_ this will fail:: from requests import async diff --git a/docs/user/install.rst b/docs/user/install.rst index dc4aa62..6179abd 100644 --- a/docs/user/install.rst +++ b/docs/user/install.rst @@ -54,3 +54,25 @@ Once you have a copy of the source, you can embed it in your Python package, or install it into your site-packages easily:: $ python setup.py install + +.. _gevent: + +Installing Gevent +----------------- + +If you are using the ``requests.async`` module for making concurrent +requests, you need to install gevent. + +To install gevent, you'll need ``libevent``. + +OSX:: + + $ brew install libevent + +Ubuntu:: + + $ apt-get install libevent-dev + +Once you have ``libevent``, you can install ``gevent`` with ``pip``:: + + $ pip install gevent \ No newline at end of file diff --git a/requests/models.py b/requests/models.py index 8969c88..a63c904 100644 --- a/requests/models.py +++ b/requests/models.py @@ -182,7 +182,6 @@ class Request(object): response._close = resp.close if self.cookiejar: - response.cookies = dict_from_cookiejar(self.cookiejar)