summaryrefslogtreecommitdiff
path: root/docs/user_guide
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2022-02-15 12:47:40 -0600
committerJordan Cook <jordan.cook@pioneer.com>2022-02-15 13:00:52 -0600
commit1f5d6f6ff180e4755e8ac1a69b646a33e2259b23 (patch)
tree8e9a04484bfb986f6a12fb2437e49f4f4ddbd459 /docs/user_guide
parent261bda40a5c2cf804fc40fff7838cc33a8b1b64e (diff)
downloadrequests-cache-1f5d6f6ff180e4755e8ac1a69b646a33e2259b23.tar.gz
Use only integers for expire_after values in tests and docs
Diffstat (limited to 'docs/user_guide')
-rw-r--r--docs/user_guide/expiration.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/user_guide/expiration.md b/docs/user_guide/expiration.md
index 37bc010..3113604 100644
--- a/docs/user_guide/expiration.md
+++ b/docs/user_guide/expiration.md
@@ -75,10 +75,10 @@ retrieving a new response. If you would like to use expired response data in the
For example:
```python
->>> # Cache a test response that will expire immediately
+>>> # Cache a test response and wait until it's expired
>>> session = CachedSession(stale_if_error=True)
->>> session.get('https://httpbin.org/get', expire_after=0.0001)
->>> time.sleep(0.0001)
+>>> session.get('https://httpbin.org/get', expire_after=1)
+>>> time.sleep(1)
```
Afterward, let's say the page has moved and you get a 404, or the site is experiencing downtime and