summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2014-12-12 23:14:41 -0800
committerMarc Abramowitz <marc@marc-abramowitz.com>2014-12-12 23:14:41 -0800
commit9aed1068976cddfd22bf24d6902094fd63587339 (patch)
tree0cc63010a7afa9cdc0ef4fdfe50d52316f78dbb6
parented47110bd22beb2befecb32908b262968d0a848d (diff)
downloadrequests-cache-9aed1068976cddfd22bf24d6902094fd63587339.tar.gz
README.rst: syntax highlighting python
-rw-r--r--README.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index 827bf96..27b4534 100644
--- a/README.rst
+++ b/README.rst
@@ -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')