diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-12-12 23:14:41 -0800 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-12-12 23:14:41 -0800 |
commit | 9aed1068976cddfd22bf24d6902094fd63587339 (patch) | |
tree | 0cc63010a7afa9cdc0ef4fdfe50d52316f78dbb6 | |
parent | ed47110bd22beb2befecb32908b262968d0a848d (diff) | |
download | requests-cache-9aed1068976cddfd22bf24d6902094fd63587339.tar.gz |
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') |