diff options
author | Roman Haritonov <reclosedev@gmail.com> | 2014-12-13 11:16:18 +0400 |
---|---|---|
committer | Roman Haritonov <reclosedev@gmail.com> | 2014-12-13 11:16:18 +0400 |
commit | 928dcaf94154cb1fdd21636f2c9257e1f3e948e8 (patch) | |
tree | 0cc63010a7afa9cdc0ef4fdfe50d52316f78dbb6 | |
parent | ed47110bd22beb2befecb32908b262968d0a848d (diff) | |
parent | 9aed1068976cddfd22bf24d6902094fd63587339 (diff) | |
download | requests-cache-928dcaf94154cb1fdd21636f2c9257e1f3e948e8.tar.gz |
Merge pull request #34 from msabramo/patch-1
README.rst: syntax highlighting python
-rw-r--r-- | README.rst | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -15,7 +15,9 @@ Requests-cache is a transparent persistent cache for requests_ (version >= 1.1.0 Usage example ------------- -Just write:: +Just write: + +.. code-block:: python import requests import requests_cache @@ -24,7 +26,9 @@ Just write:: And all responses with headers and cookies will be transparently cached to `demo_cache.sqlite` database. For example, following code will take only -1-2 seconds instead 10, and will run instantly on next launch:: +1-2 seconds instead 10, and will run instantly on next launch: + +.. code-block:: python for i in range(10): requests.get('http://httpbin.org/delay/1') |