summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-08-29 17:55:33 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-08-29 20:29:16 -0500
commitf707ddeeee5c29881c0de96092a01e78a905a401 (patch)
treed323297b41cef9a895b27c3999ae70d69c5d6df7 /examples
parent465f94d72dbb9e3ef557c5a526accd433e3ebc42 (diff)
downloadrequests-cache-f707ddeeee5c29881c0de96092a01e78a905a401.tar.gz
Some formatting for examples
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/basic_patching.py (renamed from examples/session_patch.py)2
-rwxr-xr-xexamples/basic_sessions.py (renamed from examples/basic_usage.py)2
-rwxr-xr-xexamples/generate_test_db.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/session_patch.py b/examples/basic_patching.py
index 204320d..def0ead 100755
--- a/examples/session_patch.py
+++ b/examples/basic_patching.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# flake8: noqa: F841
"""
-The same as ``basic_usage.py``, but using global session patching
+The same as `basic_sessions.py`, but using {ref}`patching`
"""
import time
diff --git a/examples/basic_usage.py b/examples/basic_sessions.py
index 3f0d82d..42a6dd2 100755
--- a/examples/basic_usage.py
+++ b/examples/basic_sessions.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# flake8: noqa: F841
"""
-A simple example using requests-cache with httpbin
+A simple example using requests-cache with [httpbin](https://httpbin.org)
"""
import time
diff --git a/examples/generate_test_db.py b/examples/generate_test_db.py
index c58fb2a..7f3dd6b 100755
--- a/examples/generate_test_db.py
+++ b/examples/generate_test_db.py
@@ -47,7 +47,7 @@ def populate_cache(progress, task):
# Cache a variety of different response formats, which may result in different behavior
urls = [
- ('GET', 'https://httpbin.org/{endpoint}')
+ ('GET', f'https://httpbin.org/{endpoint}')
for endpoint in HTTPBIN_FORMATS + HTTPBIN_EXTRA_ENDPOINTS
]
urls += [(method, 'https://httpbin.org/{method.lower()}') for method in HTTPBIN_METHODS]