update readme examples to Python 3.x
Spencer Phillip Young authored 4 years ago
GitHub committed 4 years ago
47 | 47 |
.. code-block:: python
|
48 | 48 |
|
49 | 49 |
>>> def exception_handler(request, exception):
|
50 | |
... print "Request failed"
|
|
50 |
... print("Request failed")
|
51 | 51 |
|
52 | 52 |
>>> reqs = [
|
53 | 53 |
... grequests.get('http://httpbin.org/delay/1', timeout=0.001),
|